Commit Graph

  • 63145d7735 New labs demo. Added moveForward and moveBackward to Body. photonstorm 2014-02-18 04:49:03 +00:00
  • 5d5c64d22f Tilemap.createCollisionObjects will parse Tiled data for objectgroups and convert polyline instances into physics objects you can collide with in the world. After defining tiles that collide on a Tilemap, you need to call Tilemap.generateCollisionData(layer) to populate the physics world with the data required. Debug.renderPhysicsBody updated to take camera location and body rotation into account. Body movement functions put back to velocity :) Updated to latest dev version of pixi and latest p2.js Updated docs photonstorm 2014-02-18 03:01:51 +00:00
  • 375e9e379a Fixed issue with trimmed JSON Hash texture atlases not parsing correctly. photonstorm 2014-02-17 19:58:45 +00:00
  • cad14848e8 Removed input handler from Graphics as it's just meant to be used as a texture really, if you need input events you can apply Graphics to a Sprite. You can now create a Physics Body directly via game.physics.createBody(), and Body has been updated so it's no longer always bound to a Sprite. Debug.renderPhysicsBody now works with Rectangles, Lines and multiple Convex shapes. Starting to get the Tiled polyline parsing working nicely. Not too far off a complete tilemap collision. photonstorm 2014-02-17 17:54:10 +00:00
  • 78bf874888 Fresh build. Added pre/post update hooks to Graphics. photonstorm 2014-02-17 11:27:31 +00:00
  • c57071bd98 Return a value from Phaser.Physics.Arcade.intersects. bunnyhero 2014-02-16 21:11:08 -05:00
  • d026f968de You can now set the Stage.backgroundColor using either hex or numeric values. photonstorm 2014-02-16 14:54:04 +00:00
  • cfa2c96637 Updated to latest pixi and p2.js photonstorm 2014-02-16 14:32:16 +00:00
  • 06273211ad Merge pull request #428 from JoeAnzalone/1.2 Richard Davey 2014-02-16 03:12:27 +00:00
  • c74016189e Make header image on labs site responsive Joe Anzalone 2014-02-15 18:45:17 -05:00
  • 3a59c13a71 Added hostname: '*' to the grunt-connect in Gruntfile.js (fixes #426) photonstorm 2014-02-15 19:03:43 +00:00
  • 85eaaef688 Filters fixed to work with Pixi 1.5. photonstorm 2014-02-15 03:12:24 +00:00
  • 9837984a4d Working Springs demo. photonstorm 2014-02-15 02:56:24 +00:00
  • e5812710cc Added Spring class. Fixed reason why World wasn't pre and post updating (Stage didn't have an exists property). photonstorm 2014-02-15 02:19:37 +00:00
  • e922bbdfd3 New build files photonstorm 2014-02-15 01:36:07 +00:00
  • e5e643b103 fixedToCamera now works across all display objects. When enabled it will fix at its current x/y coordinate, but can be changed via cameraOffset. fixedToCamrea now works for Groups as well :) You can fix a Group to the camera and it will influence its children. Also fixed the issue with World.preUpdate/postUpdate not being called and various small documentation issues. photonstorm 2014-02-15 01:27:42 +00:00
  • e5a4620b87 Loader.physics now lets you load Lime + Corona JSON Physics data, which can be used with Body.loadPolygon and Body.loadData. Cache.addPhysicsData and Cache.getPhysicsData allow you to store parsed JSON physics data in the cache, for sharing between Bodies. photonstorm 2014-02-14 23:51:49 +00:00
  • b94c78cf61 Removed loads of old Debug methods and fixed up Debug.renderPhysicsBody so it iterates through and renders the shapes of a Body. photonstorm 2014-02-14 22:30:24 +00:00
  • 8fcf5ee415 Debug rendering of physics bodies. photonstorm 2014-02-14 21:49:02 +00:00
  • 1cb40b6df1 Packaged builds for anyone wanting to test this weekend :) photonstorm 2014-02-14 18:07:17 +00:00
  • 1097a699c3 Fixed anchor issue with Sprite.body. photonstorm 2014-02-14 18:06:00 +00:00
  • 291f8ef14c Fixed issue with physics world not being centered if you resized it. photonstorm 2014-02-14 17:52:59 +00:00
  • 1b5837d71d World preUpdate, update and postUpdate have all been moved to Stage. So all children are updated regardless where on the display list they live. Fixes #419 photonstorm 2014-02-14 17:29:31 +00:00
  • 1f93b62055 Fixes #421 photonstorm 2014-02-14 17:10:29 +00:00
  • bcd31499c4 Couple of new labs tests. photonstorm 2014-02-14 17:08:25 +00:00
  • 539a0f2256 BitmapFont fixes and updates and Cache support for it added. Working sweet now. photonstorm 2014-02-14 16:38:06 +00:00
  • ef95fbaa00 BitmapFont moved to extending RenderTexture instead of BitmapData. Now applied as a texture to a Sprite/Image. photonstorm 2014-02-14 13:50:50 +00:00
  • c3f306c795 Testing BitmapFont as a texture. photonstorm 2014-02-14 12:07:04 +00:00
  • 7d2a818d0d Added BitmapFont to the GameObjectFactory. photonstorm 2014-02-14 06:16:36 +00:00
  • 15b83e1c88 Added the new BitmapFont class. This is for rendering retro style fixed-width bitmap fonts into an Image object. photonstorm 2014-02-14 06:04:29 +00:00
  • 947985c5b1 Merge pull request #418 from srizzling/patch-1 Richard Davey 2014-02-14 04:40:51 +00:00
  • b38b00c2c1 Loader.bitmapFont now has 2 extra parameters: xSpacing and ySpacing. These allow you to add extra spacing to each letter or line of the font. photonstorm 2014-02-14 04:34:57 +00:00
  • 24f2e2a46d BitmapText updated and bought in-line with the new Text class. Moved to use the new Bitmap Text XML loader which should work fine on CocoonJS now and also supports multiple bitmap fonts per cache. photonstorm 2014-02-14 03:34:35 +00:00
  • 690bd3e9e2 FIX: Spelling Mistake Sriram Venkatesh 2014-02-14 16:21:47 +13:00
  • 58e44f75e3 SpriteBatch converted. It's an extended Group and Batch merged and works amazingly :) Ported over the maggots demo to test and wow! photonstorm 2014-02-14 01:39:01 +00:00
  • 3e99391cbf Updated all Game Objects so they all have preUpdate, update and postUpdate functions (even if empty). Updated World so when it iterates through them all it no longer checks if those functions are present before calling them. Was wasting a lot of time doing that before. photonstorm 2014-02-14 01:09:52 +00:00
  • f9a4beb608 Text update. photonstorm 2014-02-14 00:15:36 +00:00
  • 3df4746e8a Merge pull request #417 from clark-stevenson/patch-2 Richard Davey 2014-02-14 00:15:26 +00:00
  • 34e5ee3eb8 Update phaser.d.ts clark-stevenson 2014-02-14 00:08:11 +00:00
  • 819380d001 Merge branch 'origin/dev' photonstorm 2014-02-13 23:48:18 +00:00
  • 87fce63a23 Updated. photonstorm 2014-02-13 23:47:25 +00:00
  • 26459602aa Merge pull request #409 from clark-stevenson/patch-3 Richard Davey 2014-02-13 23:47:24 +00:00
  • ec4eab07a7 Merge pull request #413 from Fishrock123/1.2-return-type Richard Davey 2014-02-13 23:29:08 +00:00
  • 35e4c03bad TileSprites are now much more tidy and can run from a frame in a texture. They can also be animated. New TileSprite.autoScroll function added. photonstorm 2014-02-13 23:13:10 +00:00
  • 19c5b7c22c Strict type return (boolean) for Sprite.exists getter. Fishrock123 2014-02-13 11:05:19 -05:00
  • 5bbb7e390b Tilesprite test. photonstorm 2014-02-13 15:04:01 +00:00
  • 90e9edbf05 Updated TileSprite so it just directly extends the Pixi original. This means no input events or body for a TileSprite. Removed un-needed stuff from Graphics. Removed un-used events. Made docs in StateManager more clear re: shutdown (#410) photonstorm 2014-02-13 15:03:46 +00:00
  • 30fbbec675 BitmapData.addTo removed and enhanced BitmapData.add so it can accept either a single Sprite/Image or an Array of them. BitmapData has had all of the EaselJS functions removed. It was just taking up space and you can do it all via BitmapData.context directly. Camera following now working again. photonstorm 2014-02-13 14:19:41 +00:00
  • 79007bc142 Overhauled Phaser.d.ts clark-stevenson 2014-02-13 13:31:24 +00:00
  • 9d6d3127ad Few more reference fixes. photonstorm 2014-02-13 13:00:15 +00:00
  • e9fb8f6389 Updates across the board moving Stage.canvas to Game.canvas photonstorm 2014-02-13 12:55:58 +00:00
  • 0786e86ee5 Stage.scale has been moved to Game.scale. The same game scaling properties exist as before, but now accessed via Game.scale instead. Stage.aspectRatio has been moved to StageScaleMode.sourceAspectRatio (so now game.scale.sourceAspectRatio) Stage.scaleMode has been moved to StageScaleMode.scaleMode (so now game.scale.scaleMode) Stage.fullScreenScaleMode has been moved to StageScaleMode.fullScreenScaleMode (so now game.scale.fullScreenScaleMode) Stage.canvas has been removed. It was only ever an alias for Game.canvas anyway, so access it via that instead. photonstorm 2014-02-13 12:50:10 +00:00
  • 175584469a Updated README. Previous commit fixes #406. photonstorm 2014-02-13 12:28:13 +00:00
  • bdb8908fee Groups now update their children across preUpdate, update and postUpdate. Sprite.exists = false removes Body from world. photonstorm 2014-02-13 12:26:39 +00:00
  • 312ec462bc Sprite.exists now toggles the Body as well. Sprite.exists = false will remove an active Body from the World. photonstorm 2014-02-13 09:55:46 +00:00
  • b85f40df12 Phaser.Stage now extends PIXI.Stage, rather than containing a _stage object. (Warning: currently breaks camera based code and pointers, as the scale property is removed). photonstorm 2014-02-12 23:12:36 +00:00
  • f6113ac6c4 Physics World events added. Group has new 'addToWorld' parameter, which fulfills the same function as the old useStage. Stage now extends PIXI.Stage rather than owns one. photonstorm 2014-02-12 19:45:09 +00:00
  • 0641170aab Explicitly paused Timer continues if you un-focus and focus the browser window (thanks georgiee) Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee) Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy) Added SAT.js to TypeScript definition. Now compiles properly. Added missing Line.js to the Grunt file. Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep) Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64). Fixed easing tween example case. Issue #379 (thanks wesleywerner) Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills) Removed inContact check from Body.separate. Fixed Tilemap docs (wrongly pointed to Tileset methods) 1.1.5 photonstorm 2014-02-12 15:33:31 +00:00
  • d9323de752 Docs and Examples update. photonstorm 2014-02-12 15:26:29 +00:00
  • 1d633a55f0 Merged from dev. photonstorm 2014-02-12 15:24:59 +00:00
  • 3c631768f2 Explicitly paused Timer continues if you un-focus and focus the browser window (thanks georgiee) Added TimerEvent.pendingDelete and checks in Timer.update, so that removing an event in a callback no longer throws an exception (thanks georgiee) Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy) Added SAT.js to TypeScript definition. Now compiles properly. Added missing Line.js to the Grunt file. Tilemap#paste diffX and diffY equations changed, fixed issue #393 (thanks brejep) Added missing return value in Body.hitLeft and hitRight, fixes issue #398 (thanks ram64). Fixed easing tween example case. Issue #379 (thanks wesleywerner) Removed SAT.js UMD wrapped, fixes issue #361 (thanks luizbills) photonstorm 2014-02-12 15:09:27 +00:00
  • 59ea6746db Merge pull request #393 from brejep/master Richard Davey 2014-02-12 14:56:41 +00:00
  • 424d1126bc Fixed updateTransform and added Body shape methods. photonstorm 2014-02-12 14:50:32 +00:00
  • 2a65488eec Added Line.js to the Gruntfile. photonstorm 2014-02-12 08:25:46 +00:00
  • 62aa0fc570 Remove some debug info. photonstorm 2014-02-12 08:24:47 +00:00
  • c6cc2c9d71 Updated p2.js to latest build. Checked tests. Added Debug draw (needs rotation support). photonstorm 2014-02-12 05:34:31 +00:00
  • 2c100754bb Body.setPolygon converted and working, along with some other p2 Body methods hoisted up. photonstorm 2014-02-12 03:22:49 +00:00
  • ab5c07dfe8 Updated to Pixi 1.5 final. InputHandler.pixelPerfectOver - performs a pixel perfect check to see if any pointer is over the current object (warning: very expensive!) InputHandler.pixelPerfectClick - performs a pixel perfect check but only when the pointer touches/clicks on the current object. photonstorm 2014-02-12 01:25:36 +00:00
  • cf3b9ae187 Merge pull request #365 from luizbills/dev Richard Davey 2014-02-12 00:57:56 +00:00
  • da878b2181 Updated the Gruntfile. Also: photonstorm 2014-02-11 13:23:54 +00:00
  • 43d9fc4f52 Fixed issue where loadTexture would sometimes incorrectly try to apply the texture update twice. Also fixed bug in Math.angleBetween. photonstorm 2014-02-11 04:08:32 +00:00
  • 5b64b01068 New 'thrust' demo. Added Body.moveLeft, moveRight, moveUp, moveDown, rotateLeft, rotateRight and thrust methods. Also hooked up force and created an asteroids style example. photonstorm 2014-02-11 01:52:10 +00:00
  • 58102168aa Added setBoundsToWorld and got it building the bounds body + 4 (optional) Planes around the edges for collision. photonstorm 2014-02-10 23:28:32 +00:00
  • 1184d8bd76 PointProxy added to allow for easy setting of force and velocity. More p2 tests done. World update done. photonstorm 2014-02-10 22:54:56 +00:00
  • 2de934756c Body property updates. Still working out best way to handle velocity assignment. photonstorm 2014-02-10 19:33:27 +00:00
  • 47e23096bd Integrating p2.js. photonstorm 2014-02-10 16:01:30 +00:00
  • 10252543f2 Fixed the TypeScript definitions to include the missing SAT classes and other small tweaks. Updated README. photonstorm 2014-02-10 02:37:00 +00:00
  • 6f835d7696 Added Tileset to TypeScript defs. photonstorm 2014-02-10 02:42:28 +00:00
  • d26bda2736 Small textual changes. photonstorm 2014-02-10 02:32:56 +00:00
  • d2366d5fa5 Fix for issue #376 - IE11 didn't populate the Device.ieVersion value. Now extracted from Trident revision, but still use Device.trident instead for IE11+ checks. photonstorm 2014-02-10 02:23:45 +00:00
  • ae74cb02dd Fixes #382 Error when using InputHandler#onInputUp & sprite destroys itself during the event. photonstorm 2014-02-10 02:14:59 +00:00
  • 0294a4735d Fixes issues reported in #389 photonstorm 2014-02-10 01:49:58 +00:00
  • d44775c095 Phaser.Ellipse added. A fully compatible port of the PIXI.Ellipse class, can be used in Sprite/Image hitArea tests. Phaser.Polygon added. A fully compatible port of the PIXI.Polygon class, can be used in Sprite/Image hitArea tests. photonstorm 2014-02-10 01:37:50 +00:00
  • f9f2f2a9ae Converted the Pixi.Ellipse class. photonstorm 2014-02-10 01:18:53 +00:00
  • e15bebd269 Text.lineSpacing allows you to control the spacing between each line that is rendered. Text.inputEnabled allows you to enable all input events over Text objects: dragging, clicking, etc - anything that works on a Sprite works on Text now too. photonstorm 2014-02-09 22:48:35 +00:00
  • 9ee5cdaded Merge branch 'origin/dev' photonstorm 2014-02-09 19:59:03 +00:00
  • 62da24a7fc Merge pull request #392 from clark-stevenson/patch-1 Richard Davey 2014-02-09 19:51:28 +00:00
  • b0f4ac3bcc Tilemap - reverse diffX and diffY equations in Tilemap#paste. Brett Jephson 2014-02-09 17:37:21 +00:00
  • e9ab2d30b6 Update phaser.d.ts clark-stevenson 2014-02-09 17:00:07 +00:00
  • 27bca6a8c2 Update phaser.d.ts clark-stevenson 2014-02-09 16:15:10 +00:00
  • bca64c2adb Huge update to Phaser.Text. Much more lean, but loads of great new options added including drop shadows, gradient fills, fonts with spaces in the name, etc. photonstorm 2014-02-09 13:36:02 +00:00
  • 4aa945f991 Removed PixiPatch as it's no longer needed. Re-worked all of the Sprite autoCull and inWorld checks and cached the bounds. Fixed the Body calculations so physics is working again. photonstorm 2014-02-09 03:48:31 +00:00
  • e8b432f518 Fixed bug where changing State would cause the camera to not reset if it was following an object. World.reset now calls Camera.reset which sends the camera back to 0,0 and un-follows any object it may have been tracking. photonstorm 2014-02-08 13:45:18 +00:00
  • 325f63b45d Merge branch '1.2' of https://github.com/photonstorm/phaser into 1.2 Richard Davey 2014-02-08 10:11:56 +00:00
  • 243820c973 Fixing up Pixis setBackgroundColor. photonstorm 2014-02-08 09:14:44 +00:00
  • ee3f6d8e7f Tilemap had the wrong @method signatures so most were missing from the docs. photonstorm 2014-02-08 07:24:22 +00:00
  • 67bd653eb4 Graphics updated and restored. Working through fixing up Physics. photonstorm 2014-02-07 19:44:14 +00:00
  • c429787877 Button now extends Phaser.Image not Phaser.Sprite, all the same functionality as before remains, just no animations or physics body. photonstorm 2014-02-07 18:55:29 +00:00
  • bf13c7b569 Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing! photonstorm 2014-02-07 18:44:58 +00:00
  • dd43d59cce InputManager.getLocalPosition(displayObject, pointer, output) will return the local coordinates of the specified displayObject and pointer. InputManager.hitTest will test for pointer hits against a Sprite/Image, its hitArea (if set) or any of its children. photonstorm 2014-02-07 18:01:58 +00:00