Jump to content

0.9.3 Update


Recommended Posts

Pretty big update this time!


  • Added the new ScrollZone game object. Endlessly useful but especially for scrolling backdrops. Created 6 example tests.
  • Added GameObject.hideFromCamera(cameraID) to stop an object rendering to specific cameras (also showToCamera and clearCameraList)
  • Added GameObject.setBounds() to confine a game object to a specific area within the world (useful for stopping them going off the edges)
  • Added GameObject.outOfBoundsAction, can be either OUT OF BOUNDS STOP which stops the object moving, or OUT OF BOUNDS KILL which kills it.
  • Added GameObject.rotationOffset. Useful if your graphics need to rotate but weren't drawn facing zero degrees (to the right).
  • Added shiftSinTable and shiftCosTable to the GameMath class to allow for quick iteration through the data tables.
  • Added more robust frame checking into AnimationManager
  • Re-built Tilemap handling from scratch to allow for proper layered maps (as exported from Tiled / Mappy)
  • Tilemap no longer requires a buffer per Camera (in prep for WebGL support)
  • Fixed issues with Group not adding reference to Game to newly created objects (thanks JesseFreeman)
  • Fixed a potential race condition issue in Game.boot (thanks Hackmaniac)
  • Fixed issue with showing frame zero of a texture atlas before the animation started playing (thanks JesseFreeman)
  • Fixed a bug where Camera.visible = false would still render
  • Removed the need for DynamicTextures to require a key property and updated test cases.
  • You can now pass an array or a single value to Input.Keyboard.addKeyCapture().

Try out the new Blasteroids demo (arrows to fly, space to shoot)





Link to comment
Share on other sites

Amazing update. Extra thanks for including ability to load maps from Tiled, which is a great editor.


Just wondering if you plan to include a demo that would show how to subclass a Phaser.Sprite, for example if you wanted to have your ship in Blastoids as a file called "Ship.ts" in the Scroll Zones folder. I spent a bit of time on it, reading about Internal Named Modules, but I couldn't really find an elegant solution.


It's an amazing framework, and congratulations. I hope your HTML5 business is doing well!

Link to comment
Share on other sites

Great update! I was just wondering if you were considering including the option to create text game objects? For my game it would be cool to be able to manipulate and tween text labels. This is how I subclass Phaser.Sprite, not sure if it's the best way to do it but it works:


class Block extends Phaser.Sprite {    constructor(game: Phaser.Game, x?: number = 0, y?: number = 0, key?: string = null) {            super(game, x, y, key);            game.world.group.add(this);    }}
Link to comment
Share on other sites


  • Recently Browsing   0 members

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