rich Posted April 12, 2013 Share Posted April 12, 2013 First we have just released Phaser. Phaser is a light-weight 2D HTML5 game framework based heavily on Flixel. Indeed it started life called Flixel5 but was renamed to avoid any potential confusion The current feature list is pretty comprehensive: Asset Loading Images, Sprite Sheets, Texture Packer Data, JSON, Text Files, Audio File.Cameras Multiple world cameras, camera scale, zoom, rotation, deadzones and Sprite following.Sprites All sprites have physics properties including velocity, acceleration, bounce and drag. ScrollFactor allows them to re-act to cameras at different rates.Groups Group sprites together for collision checks, visibility toggling and function iteration.Animation Sprites can be animated by a sprite sheet or Texture Atlas (JSON Array format supported). Animation playback controls, looping, fps based timer and custom frames.Collision A QuadTree based Sprite to Sprite, Sprite to Group or Group to Group collision system.Particles An Emitter can emit Sprites in a burst or at a constant rate, setting physics properties.Input Keyboard and Mouse handling supported (Touch coming asap)Stage Easily change properties about your game via the stage, such as background color, position and size.World The game world can be any size and Sprites and collision happens within it.Sound (partial support) Currently uses WebAudio for playback. A lot more work needs to be done in this area.State Management For larger games it’s useful to break your game down into States, i.e. MainMenu, Level1, GameOver, etc. The state manager makes swapping states easy, but the use of a state is completely optional.Cache All loaded resources are stored in an easy to access cache, which can be cleared between State changes or persist through-out the whole game.Tilemaps Support for CSV and Tiled JSON format tile maps is implemented but currently limited. It’s not yet finished of course and there is still lots to do, but with Ludam Dare around the corner I wanted to get this out sooner rather than later. So please download it, try it, kick it hard and let me know what you think. You can run all the current tests here: http://gametest.mobi/phaser/ (note they are all designed for desktop, but Phaser does also work on mobile) Download the full source here: https://github.com/photonstorm/phaser We built Phaser using TypeScript, but you can easily use plain-vanilla JavaScript to create your games, indeed all of the Test cases were created that way. We’ve a number of exciting plans for Phaser in the near future, so definitely stay tuned! Pixels Commander 1 Link to comment Share on other sites More sharing options...
benny! Posted April 12, 2013 Share Posted April 12, 2013 One word: Fantastic!Thanks a lot for sharing! Link to comment Share on other sites More sharing options...
rich Posted April 12, 2013 Author Share Posted April 12, 2013 Still a lot of work to do, but release early and get feedback is better than just sitting on this I was really inspired by some of the feature sets of frameworks like smoothStep2D, I loved the way they supported Particle Designer, so I definitely want to try stuff like that too. Link to comment Share on other sites More sharing options...
nem0ff Posted April 12, 2013 Share Posted April 12, 2013 how this library is related to previously announced kiwi.js? Link to comment Share on other sites More sharing options...
Chris Posted April 12, 2013 Share Posted April 12, 2013 Why do you have to pass "this" to the constructor of Game()? Link to comment Share on other sites More sharing options...
Mike Posted April 12, 2013 Share Posted April 12, 2013 Great news for TypeScript users too And like nem0ff asked is this related to kiwi.js ? Link to comment Share on other sites More sharing options...
rich Posted April 12, 2013 Author Share Posted April 12, 2013 Why do you have to pass "this" to the constructor of Game()? It's basically a way of passing the context under which the functions are run in case they are not the same in which the game was instantiated. Link to comment Share on other sites More sharing options...
rich Posted April 12, 2013 Author Share Posted April 12, 2013 Re kiwi. That will still (eventually) be released, but is out of my control. Think of this like Kiwi Lite. The full framework is almost enterprise grade in scope now. But I am committed to Phaser too, it won't languish or be forgotten. Link to comment Share on other sites More sharing options...
nem0ff Posted April 13, 2013 Share Posted April 13, 2013 I am very happy to see a library from really experienced developer who not only develops just anotherJS library, but also has many commercial games published Many thanks for sharing your hard work! Link to comment Share on other sites More sharing options...
benny! Posted April 13, 2013 Share Posted April 13, 2013 Input Keyboard and Mouse handling supported (Touch coming asap)! +1 for touch support Btw - do you have any plans that Phaser is going to have WebGL support some day? Link to comment Share on other sites More sharing options...
rich Posted April 13, 2013 Author Share Posted April 13, 2013 Touch support was added last night Yes definitely WebGL soon. Link to comment Share on other sites More sharing options...
benny! Posted April 13, 2013 Share Posted April 13, 2013 Yippie Yeah!!! Link to comment Share on other sites More sharing options...
Recommended Posts