photonstorm
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.
2014-02-13 23:13:10 +00:00
Fishrock123
19c5b7c22c
Strict type return (boolean) for Sprite.exists
getter.
2014-02-13 11:05:19 -05:00
photonstorm
5bbb7e390b
Tilesprite test.
2014-02-13 15:04:01 +00:00
photonstorm
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 )
2014-02-13 15:03:46 +00:00
photonstorm
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.
2014-02-13 14:19:41 +00:00
photonstorm
9d6d3127ad
Few more reference fixes.
2014-02-13 13:00:15 +00:00
photonstorm
e9fb8f6389
Updates across the board moving Stage.canvas to Game.canvas
2014-02-13 12:55:58 +00:00
photonstorm
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.
2014-02-13 12:50:10 +00:00
photonstorm
175584469a
Updated README. Previous commit fixes #406 .
2014-02-13 12:28:13 +00:00
photonstorm
bdb8908fee
Groups now update their children across preUpdate, update and postUpdate.
...
Sprite.exists = false removes Body from world.
2014-02-13 12:26:39 +00:00
photonstorm
312ec462bc
Sprite.exists now toggles the Body as well. Sprite.exists = false will remove an active Body from the World.
2014-02-13 09:55:46 +00:00
photonstorm
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).
2014-02-12 23:12:36 +00:00
photonstorm
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.
2014-02-12 19:45:09 +00:00
photonstorm
424d1126bc
Fixed updateTransform and added Body shape methods.
2014-02-12 14:50:32 +00:00
photonstorm
62aa0fc570
Remove some debug info.
2014-02-12 08:24:47 +00:00
photonstorm
c6cc2c9d71
Updated p2.js to latest build. Checked tests. Added Debug draw (needs rotation support).
2014-02-12 05:34:31 +00:00
photonstorm
2c100754bb
Body.setPolygon converted and working, along with some other p2 Body methods hoisted up.
2014-02-12 03:22:49 +00:00
photonstorm
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.
2014-02-12 01:25:36 +00:00
photonstorm
da878b2181
Updated the Gruntfile. Also:
...
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.
Previously using a Pixel Perfect check didn't work if the Sprite was rotated or had a non-zero anchor point, now works under all conditions + atlas frames.
2014-02-11 13:23:54 +00:00
photonstorm
43d9fc4f52
Fixed issue where loadTexture would sometimes incorrectly try to apply the texture update twice. Also fixed bug in Math.angleBetween.
2014-02-11 04:08:32 +00:00
photonstorm
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.
2014-02-11 01:52:10 +00:00
photonstorm
58102168aa
Added setBoundsToWorld and got it building the bounds body + 4 (optional) Planes around the edges for collision.
2014-02-10 23:28:32 +00:00
photonstorm
1184d8bd76
PointProxy added to allow for easy setting of force and velocity. More p2 tests done. World update done.
2014-02-10 22:54:56 +00:00
photonstorm
2de934756c
Body property updates. Still working out best way to handle velocity assignment.
2014-02-10 19:33:27 +00:00
photonstorm
47e23096bd
Integrating p2.js.
2014-02-10 16:01:30 +00:00
photonstorm
6f835d7696
Added Tileset to TypeScript defs.
2014-02-10 02:42:28 +00:00
photonstorm
d26bda2736
Small textual changes.
2014-02-10 02:32:56 +00:00
photonstorm
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.
2014-02-10 02:23:45 +00:00
photonstorm
ae74cb02dd
Fixes #382 Error when using InputHandler#onInputUp & sprite destroys itself during the event.
2014-02-10 02:14:59 +00:00
photonstorm
0294a4735d
Fixes issues reported in #389
2014-02-10 01:49:58 +00:00
photonstorm
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.
2014-02-10 01:37:50 +00:00
photonstorm
f9f2f2a9ae
Converted the Pixi.Ellipse class.
2014-02-10 01:18:53 +00:00
photonstorm
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.
2014-02-09 22:48:35 +00:00
photonstorm
9ee5cdaded
Merge branch 'origin/dev'
2014-02-09 19:59:03 +00:00
Richard Davey
62da24a7fc
Merge pull request #392 from clark-stevenson/patch-1
...
Update phaser.d.ts
2014-02-09 19:51:28 +00:00
clark-stevenson
e9ab2d30b6
Update phaser.d.ts
...
Sprite was missing height property
2014-02-09 17:00:07 +00:00
clark-stevenson
27bca6a8c2
Update phaser.d.ts
...
atlasJSONArray, atlasJSONHash should have optional parameters when it comes to URL/Object? Please disregard this if this is incorrect.
2014-02-09 16:15:10 +00:00
photonstorm
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.
2014-02-09 13:36:02 +00:00
photonstorm
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.
2014-02-09 03:48:31 +00:00
photonstorm
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.
2014-02-08 13:45:18 +00:00
Richard Davey
325f63b45d
Merge branch '1.2' of https://github.com/photonstorm/phaser into 1.2
2014-02-08 10:11:56 +00:00
photonstorm
243820c973
Fixing up Pixis setBackgroundColor.
2014-02-08 09:14:44 +00:00
photonstorm
ee3f6d8e7f
Tilemap had the wrong @method signatures so most were missing from the docs.
2014-02-08 07:24:40 +00:00
photonstorm
67bd653eb4
Graphics updated and restored. Working through fixing up Physics.
2014-02-07 19:44:14 +00:00
photonstorm
c429787877
Button now extends Phaser.Image not Phaser.Sprite, all the same functionality as before remains, just no animations or physics body.
2014-02-07 18:55:29 +00:00
photonstorm
bf13c7b569
Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing!
2014-02-07 18:44:58 +00:00
photonstorm
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.
2014-02-07 18:01:58 +00:00
photonstorm
bc3a3fd43d
You can now use the hitArea property on Sprites and Image objects. hitArea can be a geometry object (Rectangle, Circle, Polygon, Ellipse) and is used in pointerOver checks.
2014-02-07 17:14:10 +00:00
photonstorm
890e52008a
Mouse callback tests.
2014-02-07 07:32:11 +00:00
photonstorm
9b9baa83a9
Added Image.frame and Image.frameName support in.
2014-02-07 06:52:49 +00:00