enpu Posted June 9, 2014 Share Posted June 9, 2014 Release notes:https://github.com/ekelokorpi/panda.js/releases/tag/1.6.0 Examples: 1. Camerathis.camera = new game.Camera();this.camera.addTo(this.levelContainer);this.camera.acceleration = 1.5;this.camera.minX = this.camera.minY = 0;this.camera.maxX = Math.max(0, this.level.width - game.system.width);this.camera.maxY = Math.max(0, this.level.height - game.system.height);this.camera.offset.x = game.system.width / 2 - 400;this.camera.setPosition(this.player.sprite.position.x, this.player.sprite.position.y);this.camera.follow(this.player.sprite);2. iOS8 detection You can now detect iOS8 with:game.device.iOS83. ignoreModules All engine modules are now loaded from core by default. If you do not want to include module in your game,then you can use ignoreModules:pandaConfig = { ignoreModules: [ 'engine.physics', 'engine.keyboard' ]};You should ignore all modules, that you don't use in your game. This will reduce your game size. 3. scaleToFit Use scaleToFit to scale canvas into full window size on desktop: Without scaleToFit: With scaleToFit: 4. Loader dynamic mode Now you can use loader to load assets without changing scene. Example:http://www.pandajs.net/snippets/9adc8186791129fc59c4.html nacs 1 Quote Link to comment Share on other sites More sharing options...
nacs Posted June 10, 2014 Share Posted June 10, 2014 Looks great. What is:Added dynamic mode to Loader ? Quote Link to comment Share on other sites More sharing options...
enpu Posted June 12, 2014 Author Share Posted June 12, 2014 Sorry will make example asap nacs 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted June 13, 2014 Author Share Posted June 13, 2014 Just added example on dynamic loader. 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.