Sign in to follow this  

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() { = new game.Graphics();;, 0, 260, 40); = game.system.width / 2 - (260 / 2); = game.system.height / 2 - (40 / 2); = this.percent / 100;        game.system.stage.addChild(;    },    onPercentChange: function() { = this.percent / 100;    }});

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

Share this post

Link to post
Share on other sites

Thank you very much! ^_^

O.T.:  I just started using Panda.js and even though it lacks some minor feature and a more detailed documentation, I think it could become soon a great engine and one of my favourite of course.
Are you developing it alone?

Share this post

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

Share this post

Link to post
Share on other sites

Here is list of features that are currently on roadmap:

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:

What do you think?

Share this post

Link to post
Share on other sites

Camera demo is very cool. I have so much to learn. I don't even know what to do with half this stuff. Seeing demos makes it more obvious.

Makes me realise how simple my game is going to be.

Share this post

Link to post
Share on other sites

Very cool demo. Can't wait to see it officially released.
About the physics engine... well, it is mandatory in a game engine so I'm waiting for p2.js implementation or.... what about box2d? I know there's a js porting ^_^

Share this post

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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.