Jump to content

Panda.js 1.4.0 released


enpu
 Share

Recommended Posts

Release notes:

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

 

Examples:

 

Background image/color syntax has changed a bit, and now supports also desktop.

Also background position can be defined.

pandaConfig = {    sourceFolder: 'src',    mediaFolder: 'media',    outputFile: 'game.min.js',    system: {        bgColor: '#ff0000',        bgColorMobile: '#00ff00',        bgColorRotate: '#0000ff',        bgImage: 'panda.png',        bgImageMobile: 'logo.png',        bgImageRotate: 'rotate.png',        bgPosition: 'center'    }};

Hires mode can be defined with minimum width and height:

pandaConfig = {    sourceFolder: 'src',    mediaFolder: 'media',    outputFile: 'game.min.js',    system: {        hires: true,        hiresWidth: 1024,        hiresHeight: 768    }};

Core modules can be now defined in config, it's useful if your game doesn't need ie. tween or audio module.

This will make your game size smaller.

pandaConfig = {    sourceFolder: 'src',    mediaFolder: 'media',    outputFile: 'game.min.js',    coreModules: [        'engine.loader',        'engine.timer',        'engine.system',        'engine.renderer',        'engine.sprite',        'engine.scene'    ]};

There is also two new game showcases on website:

http://www.pandajs.net/showcase/

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