Jump to content

Is it possible to have a custom loader on Panda.js


Recommended Posts

Here is short example on how to customize loader:

game.Loader.inject({    backgroundColor: 0xcccccc,    initStage: function() {        this.bar = new game.Graphics();        this.bar.beginFill(0xffffff);        this.bar.drawRect(0, 0, 260, 40);        this.bar.position.x = game.system.width / 2 - (260 / 2);        this.bar.position.y = game.system.height / 2 - (40 / 2);        this.bar.scale.x = this.percent / 100;        game.system.stage.addChild(this.bar);    },    onPercentChange: function() {        this.bar.scale.x = this.percent / 100;    }});

I will make that better in next version, so that you can extend your own loader classes.

Link to post
Share on other sites

Uhm well... as I said I just started using panda.js so maybe those features exists yet, but here's what I can find useful:
- Tilemaps
- Camera system
- Animation manager (something like a state machine)
- Fancy WebGL and Canvas effects (color correction, distortion, glowing, glass effect....)
- 2D lighting

About documentation, more details both on the API docs and on the tutorials comments are needed. Plus I can't find documentation on:
- Tiling Sprites
- Asset manager
- Event dispatching

At the moment I'm experiencing an issue with the physics engine:

when a box collides with a box it stops, but when a circle collides with a box it pass through. You can recreate this issue by changing the player's body to a Circle in your flying dog game.

Though I would like to say again I'm very happy of panda.js :-D
 

Link to post
Share on other sites

Here is list of features that are currently on roadmap:

https://github.com/ekelokorpi/panda.js/issues?labels=feature&page=1&state=open

Feel free to add more.

 

I'm trying to make more documentation/tutorials every day (uploading new screencast just now),

so please be patient or ask if you don't understand something :)

 

Panda's physics module is very simple and still heavily under development, that's why i'm planning to add p2.js module,

for games that need more advanced physics (like Angry Birds style game etc.).

 

I'm currently working on camera module, with polygons and pathfinding, here is small demo of what's coming:

http://www.pandajs.net/games/camerademo/

What do you think?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...