Jump to content

Panda.js 1.5.0 released


enpu
 Share

Recommended Posts

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 you

open your game on iPhone 5. It will scale and look like this:

post-88-0-36569900-1400759871.png

 

But if you enable resizeToFill, your canvas will be resized to fullscreen.

post-88-0-26344600-1400759912.png

 

Enable resizeToFill with:

game.System.resizeToFill = true;

or from config file:

system: {    resizeToFill: true}

2. Blend modes

var sprite = new game.Sprite('player.png');sprite.blendMode = game.blendModes.ADD;

List of blend modes:

NORMAL
ADD
MULTIPLY
SCREEN
OVERLAY
DARKEN
LIGHTEN
COLOR_DODGE
COLOR_BURN
HARD_LIGHT
SOFT_LIGHT
DIFFERENCE
EXCLUSION
HUE
SATURATION
COLOR
LUMINOSITY
 
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 :)

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...