Commit graph

1991 commits

Author SHA1 Message Date
photonstorm
21b47b3904 Added putTile support. 2014-05-07 02:57:31 +01:00
Murilo Clemente
c882ebef2f Added undefined check processPixelRGB
Phaser.BitmapData#processPixelRGB:

I was getting an undefined error when phaser tried to call setPixel32
using “result.r”.
With this additional undefined check the problem stopped and I’m able
to run this method with all my needed images.
2014-05-06 22:43:35 -03:00
photonstorm
041bbd430c Tilemap.getTile has a new nonNull parameter. If true it won't return null for empty tiles, but will return the actual Tile in that location. 2014-05-07 01:30:48 +01:00
Richard Davey
63abd17543 Merge pull request #800 from clark-stevenson/patch-2
Update phaser.d.ts
2014-05-07 00:13:22 +01:00
photonstorm
6070bc63bc Sound.play now returns the Sound object (thanks @AnderbergE, fix #802) 2014-05-07 00:12:41 +01:00
photonstorm
c94e842c75 InputManager.minPriorityID lets you set the minimum priority level an object needs to be to be checked by a Pointer. Useful for UI layer stacking. 2014-05-07 00:11:28 +01:00
photonstorm
ebd608939a PluginManager.add now accepts additional parameters and if given a function it will pass them all to the Plugin constructor. 2014-05-07 00:11:02 +01:00
photonstorm
91f8f96a76 TilemapWalker allows you to set a location marker into a tilemap. You can then move around with commands such as moveForward, turnLeft, etc.
New consts: Phaser.Tilemap.NORTH, SOUTH, EAST and WEST to use with the TileMapWalker Plugin.
2014-05-07 00:10:48 +01:00
photonstorm
2b40c8a7c7 Pointer.type and Pointer.exists properties added.
QuadTree.retrieve can now accept either a Sprite with a physics body or a Phaser.Rectangle as its parameter.
ArcadePhysics.getObjectsUnderPointer will return all children from a Group that overlap with the given Pointer.
2014-05-06 02:45:10 +01:00
clark-stevenson
266417e735 Update phaser.d.ts
Past week of updates on dev. 
Note also includes #799
2014-05-04 16:36:58 +01:00
jdowell
f10c772ff3 Graphics.drawTriangles && Polygon.area
Demo:
http://phaser-triangles.herokuapp.com
2014-05-02 12:30:49 -05:00
photonstorm
ad7e2aff1f Input.getPointerFromId will return a pointer with a matching pointerId value, if any. pointerId is a value set by the browser in the DOM event. 2014-05-02 12:21:57 +01:00
photonstorm
842abb82d3 Pointer.pointerId added which is set by the DOM event (if present in the browser). Note that browsers can and do recycle pointer IDs. 2014-05-02 12:14:05 +01:00
photonstorm
f38ccf9afe Phaser.Tween.from allows you to set tween properties that will end up where the current object is (thanks @codevinsky, #792) 2014-05-01 23:51:21 +01:00
Richard Davey
776e384b27 Merge pull request #792 from codevinsky/tween-from
Phaser.Tween.from
2014-05-01 23:50:07 +01:00
photonstorm
4466b3cd5d Input.getPointerFromIdentifier docs update to reflect where the identifier comes from. Pointer properties now set to give it fixed defaults (thanks @JirkaDellOro, #793) 2014-05-01 23:35:40 +01:00
jdowell
224553ed21 Phaser.Tween.from
Added a reverse tweening function that will accept properties of where you want to start the tween from and will end the tween at the current property or properties that are passed in.

Usage:

```language-javascript
var sprite = game.add.sprite(game.world.centerX, game.world.centerY, 'yeoman');
game.add.tween(sprite).from({x: 0 - sprite.width}, 1000, Phaser.Easing.Bounce.Out, true);
```
2014-05-01 10:34:14 -05:00
Richard Davey
afc4f1793d Merge pull request #787 from luispedrofonseca/master
Updated TypeScript definitions
2014-05-01 12:30:13 +01:00
Richard Davey
474924db94 Merge pull request #790 from woutercommandeur/dev
Fix Phaser.Line.intersectsPoints by properly checking the boundaries
2014-05-01 12:28:46 +01:00
Pablo Barbáchano
7f733a0b82 [tilemap] parse polygon, ellipses and rectangles 2014-05-01 13:13:53 +02:00
photonstorm
3f51721131 Readme updates. 2014-05-01 11:45:40 +01:00
photonstorm
1f24d95e1a New force parameter added to Group.set, setAll, setAllChildren, setProperty which controls if a property is created even if it doesn't exist.
Group.hasProperty will check a child for the given property and return a boolean.
2014-05-01 11:45:17 +01:00
photonstorm
422e769a3e Tilemap.createFromObjects will now force the creation of the property again even if it doesn't exist (regression fix from 2.0.4) 2014-05-01 11:42:15 +01:00
Wouter Commandeur
cc102a1924 Fix Phaser.Line.intersectsPoints by properly checking the boundaries 2014-05-01 11:28:00 +02:00
photonstorm
a01b8f2387 Doc updates. 2014-05-01 02:42:06 +01:00
photonstorm
032fc11576 Emitter.makeParticles updated to use Array.isArray() check on the key/frame values, so non-string objects can be passed in (thanks @AnderbergE, fix #786) 2014-05-01 02:41:53 +01:00
photonstorm
69c868f67d Moved the this._reversed flag outside of the property loop in Tween (as per tween.js issue 115) 2014-05-01 02:40:36 +01:00
photonstorm
bd4c2176f0 Added an additional tile index check to P2.World.convertTilemap. 2014-05-01 02:40:17 +01:00
photonstorm
fd9d454bc6 Documentation updates. 2014-05-01 02:38:12 +01:00
photonstorm
b40769019b The P2 DistanceConstraint method signature has changed. Updated Phaser so maxForce is now passed as object (fix #788) 2014-04-30 16:54:56 +01:00
Luis Fonseca
d49a8f1159 Update TypeScript definitions
Made the "index" parameter optional to reflect the JS version.
2014-04-30 15:00:53 +01:00
photonstorm
a7fe3a5346 Line.pointOnLine corrected algorithm (thanks @woutercommandeur, fix #784) 2014-04-30 11:57:52 +01:00
Richard Davey
616fb0c7ae Merge pull request #784 from woutercommandeur/dev
Fix pointOnLine
2014-04-30 11:55:37 +01:00
Wouter Commandeur
fbd6d9c33e Fix pointOnLine
Corrected algorithm via: http://stackoverflow.com/questions/11907947/how-to-check-if-a-point-lays-on-a-line-between-2-provided-points
2014-04-30 11:50:01 +02:00
photonstorm
4af89dbd15 2.0.5-dev build release. 2014-04-29 23:00:28 +01:00
photonstorm
046707bc92 Merge branch 'origin/master' 2014-04-29 22:58:44 +01:00
photonstorm
e0083dcb26 Phaser 2.0.4 zero hour update. 2014-04-29 22:40:18 +01:00
photonstorm
12f4c9ef21 P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix #783) 2014-04-29 22:39:28 +01:00
photonstorm
dad90a6bdd readme update. 2014-04-29 22:36:46 +01:00
photonstorm
26b2aa42ab Patching back into 2.0.4 master release a couple of important updates.
Tilemap.getTile and getTileXY used to return `null` in 2.0.3 but returned a Tile object in 2.0.4 (with an index of -1), they now return `null` again.
ScaleManager seeds _check private var with null to avoid later comparison check (thanks @jflowers45, fix #782)
P2.Body.applyForce should have used pxmi instead of pxm (thanks @Trufi, fix #776)
P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix #783)
Merge pull request #783 from woutercommandeur/dev

fix creation of RevoluteConstraint by passing maxForce in the options
2014-04-29 22:35:30 +01:00
photonstorm
486153d3e0 Patching back into 2.0.4 master release a couple of important updates. 2014-04-29 22:00:16 +01:00
photonstorm
55dc748953 Tilemap.getTile and getTileXY used to return null in 2.0.3 but returned a Tile object in 2.0.4 (with an index of -1), they now return null again. 2014-04-29 21:28:14 +01:00
photonstorm
fa613c5fe1 ScaleManager seeds _check private var with null to avoid later comparison check (thanks @jflowers45, fix #782)
P2.Body.applyForce should have used pxmi instead of pxm (thanks @Trufi, fix #776)
P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix #783)
2014-04-29 19:34:38 +01:00
Richard Davey
edef6cc56f Merge pull request #783 from woutercommandeur/dev
fix creation of RevoluteConstraint by passing maxForce in the options
2014-04-29 19:26:12 +01:00
Wouter Commandeur
b1953bd0a0 fix creation of RevoluteConstraint by passing maxForce in the options 2014-04-29 20:12:56 +02:00
photonstorm
eb86f612b3 Prep for 2.0.5 development. 2014-04-29 16:25:10 +01:00
photonstorm
1c92caad42 2.0.4 release build 2014-04-29 15:39:53 +01:00
photonstorm
ba3f6355f4 Docs update. 2014-04-29 15:39:02 +01:00
photonstorm
9fd4ac5950 Fixed and tested on IE9. 2014-04-29 15:38:33 +01:00
photonstorm
75a848f0ef Loader now uses XDomainRequest in IE9 to load JSON data to help with CORS issues. 2014-04-29 14:41:26 +01:00