Jump to content

Panda.js 1.7.0 released


enpu
 Share

Recommended Posts

Release notes:

https://github.com/ekelokorpi/panda.js/releases/tag/1.7.0

 

Examples:

 

  • Added center method to Sprite
var logo = new game.Sprite('logo.png').center().addTo(this.stage);
  • Added string shorthand to Tween easing
var logo = new game.Sprite('logo.png').center().addTo(this.stage);this.addTween(logo.position, {    x: 100}, 1000, {    easing: 'Quadratic.Out'}).start();
  • Added onComplete method to Loader
game.addAsset('logo.png');game.SceneGame = game.Scene.extend({    init: function() {        var logo = new game.Sprite('logo.png').center().addTo(this.stage);                game.addAsset('panda.png');        var loader = new game.Loader();        loader.onComplete(this.loaded.bind(this));        loader.start();    },    loaded: function() {        var panda = new game.Sprite('panda.png').addTo(this.stage);    }});

Examples games Flying Dog and Whack a Thing has been updated to support 1.7.0 :)

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