thiezar Posted February 27, 2014 Share Posted February 27, 2014 Hi!I would like to show a custom loading bar at the beginning of my game. Is this possible in panda.js? How? Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 27, 2014 Share Posted February 27, 2014 is possible to change the image and the background color but for he loading bar I don't know, maybe with a little js code it is Quote Link to comment Share on other sites More sharing options...
enpu Posted February 27, 2014 Share Posted February 27, 2014 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. Quote Link to comment Share on other sites More sharing options...
thiezar Posted February 27, 2014 Author Share Posted February 27, 2014 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? Quote Link to comment Share on other sites More sharing options...
enpu Posted February 27, 2014 Share Posted February 27, 2014 Yes i'm currently developing it alone. Please tell me what features are you missing, and i will add them to roadmap. Quote Link to comment Share on other sites More sharing options...
thiezar Posted February 27, 2014 Author Share Posted February 27, 2014 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 lightingAbout 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 dispatchingAt 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 angelkom 1 Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 27, 2014 Share Posted February 27, 2014 Yes he is correct about the bug Quote Link to comment Share on other sites More sharing options...
enpu Posted February 28, 2014 Share Posted February 28, 2014 Here is list of features that are currently on roadmap:https://github.com/ekelokorpi/panda.js/issues?labels=feature&page=1&state=openFeel 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? Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 28, 2014 Share Posted February 28, 2014 Enpu man you are crazy, can you tell us more about how did you start with html5 where did you learned and how many years by the way great camera Quote Link to comment Share on other sites More sharing options...
fuzzee Posted February 28, 2014 Share Posted February 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
thiezar Posted February 28, 2014 Author Share Posted February 28, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.