enpu Posted January 7, 2015 Share Posted January 7, 2015 I will collect some Panda.js pro tips here. Here is few to start: ScreenshotWhen using Canvas renderer, really handy way to get screenshot is to type this into console:game.system.canvas.toDataURL();Tween fast forwardIf you want to fast forward your tween to end:tween.currentTime = tween.startTime + tween.duration; drhayes, nacs and OttoRobba 3 Quote Link to comment Share on other sites More sharing options...
Legomite Posted January 7, 2015 Share Posted January 7, 2015 Hey Enpu, the youtube channel for Panda posted a video about a game made on platformer. It was awesome, but why did you remove the video? Quote Link to comment Share on other sites More sharing options...
enpu Posted January 7, 2015 Author Share Posted January 7, 2015 You mean Kuru Panda? There is a new video here: http://www.kurupanda.com Quote Link to comment Share on other sites More sharing options...
enpu Posted January 7, 2015 Author Share Posted January 7, 2015 Change main timer speedThis can be used example for nice slowmotion effects:// Slow down to 50%game.Timer.speedFactor = 0.5;// Speed up to 200%game.Timer.speedFactor = 2;// Back to normal speedgame.Timer.speedFactor = 1; nacs, drhayes and goide 3 Quote Link to comment Share on other sites More sharing options...
hamdirizal Posted January 8, 2015 Share Posted January 8, 2015 Wow, this is great. Waiting for more.And, I think you should pin this post Enpu. Quote Link to comment Share on other sites More sharing options...
Legomite Posted January 8, 2015 Share Posted January 8, 2015 You mean Kuru Panda? There is a new video here: http://www.kurupanda.comAwesome! DId you use Bamboo? The one on github does not work for me. Quote Link to comment Share on other sites More sharing options...
enpu Posted January 8, 2015 Author Share Posted January 8, 2015 No i'm using Tiled for that one. Bamboo is still under heavy development, so you can expect bugs and lot of things changing.I would not recommend to use it yet, sorry. Quote Link to comment Share on other sites More sharing options...
enpu Posted January 8, 2015 Author Share Posted January 8, 2015 @hamdirizal Thanks! It's now pinned Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted January 8, 2015 Share Posted January 8, 2015 This one is super simple and most already know but if you append?debugto the url of your game, you get an fps and object counter, along with bounding boxes and whatnot. nacs 1 Quote Link to comment Share on other sites More sharing options...
hamdirizal Posted January 8, 2015 Share Posted January 8, 2015 This one is super simple and most already know but if you append?debugto the url of your game, you get an fps and object counter, along with bounding boxes and whatnot. Actually you need to append ?debugdraw to view the bounding box and hit areas. OttoRobba and nacs 2 Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted January 8, 2015 Share Posted January 8, 2015 Actually you need to append ?debugdraw to view the bounding box and hit areas. True! Thanks for the correction Quote Link to comment Share on other sites More sharing options...
enpu Posted January 21, 2015 Author Share Posted January 21, 2015 New in 1.12 Debugging slow framerate. Sometimes, specially when using physics, it's important to see how your game works on slower frame rates.This can be done using game.System.frameRate, example config:system: { frameRate: 30}Normally objects move using delta time, so if your frame rate drops, objects move in bigger steps, to keep moving speed in sync.You can adjust game.Timer.minFPS to change when objects start to slow down, so they don't take too big steps (default is 20).timer: { minFPS: 40} 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.