Star Field Entity

A place to post your custom classes and engine extensions to share with the community.

Star Field Entity

Postby StuartTresadern » Sat Dec 07, 2013 4:27 pm

A simple vertical scrolling star field effect.

Add the StarFiled.js to your game class directory and include a reference in your ClientConfig.js

Create a new instance of the StarField which takes two parameters:

numberof stars , this is the total number of stars on the screen
viewport, the viewport that will be used to get the width and height.

and mount it to your main scene.

Code: Select all
self.starfield = new StarField(400,ige.$('vp1'))
                        .id('starfield1')
                        .mount(ige.$('scene1'));
Attachments
StarField.zip
(718 Bytes) Downloaded 646 times
User avatar
StuartTresadern
 
Posts: 59
Joined: Sun Dec 01, 2013 5:23 pm
Location: Germany

Re: Star Field Entity

Postby rob » Wed Dec 18, 2013 7:25 pm

Someone is making a space game I can tell :)
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
rob
Site Admin
 
Posts: 316
Joined: Tue Oct 22, 2013 5:08 pm

Re: Star Field Entity

Postby StuartTresadern » Wed Dec 18, 2013 7:35 pm

Yeah, I have several demo games that I want to create using the isogenic engine so that I can use it for all my HTML5 based games. Classic shooter first and then a platform game. That way I get to learn what the engine can do and what I need to add. Anyway you should see some more extensions in the coming weeks.
User avatar
StuartTresadern
 
Posts: 59
Joined: Sun Dec 01, 2013 5:23 pm
Location: Germany

Re: Star Field Entity

Postby rob » Wed Dec 18, 2013 7:44 pm

StuartTresadern wrote:Yeah, I have several demo games that I want to create using the isogenic engine so that I can use it for all my HTML5 based games. Classic shooter first and then a platform game. That way I get to learn what the engine can do and what I need to add. Anyway you should see some more extensions in the coming weeks.

Sounds very cool. Looking forward to them!
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
rob
Site Admin
 
Posts: 316
Joined: Tue Oct 22, 2013 5:08 pm


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 1 guest
cron