enpu Posted May 22, 2014 Share Posted May 22, 2014 Release notes:https://github.com/ekelokorpi/panda.js/releases/tag/1.5.0 Examples: 1. resizeToFill This feature will resize your canvas to fill the whole screen on mobile.For example, if you are developing game on iPad screen size 1024x768, and youopen your game on iPhone 5. It will scale and look like this: But if you enable resizeToFill, your canvas will be resized to fullscreen. Enable resizeToFill with:game.System.resizeToFill = true;or from config file:system: { resizeToFill: true}2. Blend modesvar sprite = new game.Sprite('player.png');sprite.blendMode = game.blendModes.ADD;List of blend modes:NORMALADDMULTIPLYSCREENOVERLAYDARKENLIGHTENCOLOR_DODGECOLOR_BURNHARD_LIGHTSOFT_LIGHTDIFFERENCEEXCLUSIONHUESATURATIONCOLORLUMINOSITY 3. Orientation You can now define orientation in config file with strings:system: { orientation: 'landscape'}4. Loading bar Customize loading bar with new attributes:loader: { barWidth: 400, barHeight: 40, barMargin: 50}5. Start scene Define start scene in config file:system: { startScene: 'SceneTitle'}6. Containers Easily add containers with new addTo method:var container = new game.Container().addTo(this.stage);7. Local storage Local storage now supports JSON data:game.storage.set('myData', { foo: 'bar' }); Please post, if you have any questions Mefteg and nacs 2 Quote Link to comment Share on other sites More sharing options...
maho125 Posted May 22, 2014 Share Posted May 22, 2014 @enpu great work! I'll try new features ASAP Quote Link to comment Share on other sites More sharing options...
enpu Posted May 26, 2014 Author Share Posted May 26, 2014 1.5.1 released with few bug fixes:https://github.com/ekelokorpi/panda.js/releases/tag/1.5.1 maho125 1 Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted May 28, 2014 Share Posted May 28, 2014 Wow thanks! ResizeToFill was just what I needed! 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.