Commit graph

1721 commits

Author SHA1 Message Date
photonstorm
5047606118 Button.onOverMouseOnly is a boolean that causes onOver events to fire only if the pointer was a mouse (i.e. stops onOver sounds triggering on touch) 2014-05-13 23:43:44 +01:00
Richard Davey
e3f834314e Merge pull request #795 from codevinsky/graphics-drawTriangles
Graphics.drawTriangles and Polygon.area
2014-05-13 23:43:16 +01:00
Richard Davey
335ff53390 Merge pull request #819 from max-m/patch-1
Improve TileMap's setCollsion functions
2014-05-13 23:38:07 +01:00
Richard Davey
6dfb09d4df Merge pull request #818 from georgiee/fix-intercative-pixi
Do not overwrite PIXI.InteractionManager so I can use PIXI standalone with Phaser on the same page
2014-05-13 23:28:52 +01:00
Maximilian Mader
d7ba7b3a62 Improve TileMap's setCollsion functions
Now one can decide in 'setCollision', 'setCollisionBetween', 'setCollisionByExclusion' and 'setCollisionByIndex' to recalculate the collision faces or not.

I was able to decrease the time it takes to set the collisions from 1880ms to 440ms in my case,see http://www.html5gamedevs.com/topic/6328-camera-rendered-area-move-tilemaplayer/?p=38037
2014-05-12 17:42:54 +02:00
Georgios Kaleadis
d032d71938 happy semicolon, do not cry jshint 😭 2014-05-11 12:56:38 +02:00
Georgios Kaleadis
03849162a8 ensure that phaser never overrides an existing pixi class 2014-05-11 10:34:13 +02:00
Richard Davey
63ca126e48 Merge pull request #816 from gamedevsam/patch-2
Typo fix
2014-05-10 11:33:22 +01:00
Samuel Batista
d5366972bc Typo fix 2014-05-10 02:15:16 -04:00
photonstorm
0d2fa2733a Timer class updated so that code-resumed pauses don't mess up the internal _pausedTotal value (thanks @joelrobichaud, fix #814)
Timer class when paused by code after a game-level pause wouldn't set the codepaused flag (thanks @joelrobichaud, fix #814)
2014-05-09 16:41:48 +01:00
photonstorm
86f6b114e8 Sound.stop on Samsung S4 would randomly throw a DOM error. Wrapped the audio stop in a try/catch (thanks FSDaniel) 2014-05-09 16:39:45 +01:00
photonstorm
78ec29facc RandomDataGenerator.integerInRange would return a non-integer value if you passed in a float. 2014-05-09 16:39:45 +01:00
photonstorm
e06f249d9b Commented out 2 functions that don't currently work. 2014-05-09 16:39:45 +01:00
photonstorm
bac618e842 jsdoc updates. 2014-05-09 16:39:45 +01:00
photonstorm
8b1e736418 BitmapData.rect provides a quick way to draw a Rectangle to a BitmapData. 2014-05-09 16:39:45 +01:00
Richard Davey
d6183c0a1e Merge pull request #814 from joelrobichaud/dev
Fixed various problems with Timer class
2014-05-09 16:36:12 +01:00
Joel Robichaud
48acfff3cd Fixed a problem with the Timer class where a timer that is _codePaused after a game pause would not be considered to be _codePaused. 2014-05-09 10:33:38 -04:00
Joel Robichaud
936d38cfdb Fixed a problem with the Timer class wheere the total pause time would be incorrect after unpausing it twice in a row (game pause followed by code pause). 2014-05-09 10:33:29 -04:00
Richard Davey
f716b0a8dd Merge pull request #812 from clark-stevenson/patch-3
Update IPixiRenderer Interface
2014-05-08 14:08:33 +01:00
clark-stevenson
30b2b40810 Update IPixiRenderer Interface
Thanks @natelong

Solves
http://www.html5gamedevs.com/topic/1638-changing-game-size-to-fit-page/?p=36922
2014-05-08 13:36:51 +01:00
Richard Davey
cd4200a902 Merge pull request #810 from jflowers45/dev
Update Silk UA test to avoid Safari conflict
2014-05-08 09:22:01 +01:00
Joe Flowers
821da772aa Updates Silk UA test to avoid Safari conflict 2014-05-08 00:28:27 -04:00
photonstorm
a60246d3c2 typeof fix. 2014-05-08 02:25:53 +01:00
photonstorm
c32706f98c Phaser.Utils.transposeArray will transpose the given array and return it.
Phaser.Utils.rotateArray will rotate the given array by 90 or 180 degrees in either direction and return it.
2014-05-08 02:17:37 +01:00
photonstorm
5eb7ae2cb0 Plugins moved to their own new repo. 2014-05-08 01:57:21 +01:00
photonstorm
410bc389ed Tidying up ready to move the plugins to their own repo. 2014-05-08 01:57:21 +01:00
Richard Davey
f0a6a7f035 Merge pull request #809 from Anahkiasen/patch-1
Fix type of Tilemap.foreach callback
2014-05-08 01:10:48 +01:00
Maxime Fabre
8d88e08115 Fix type of Tilemap.foreach callback 2014-05-08 01:57:19 +02:00
Richard Davey
aac4ff2226 Merge pull request #808 from muclemente/dev
Added undefined check processPixelRGB
2014-05-07 23:48:28 +01:00
Richard Davey
570e8acabb Joystick updates. 2014-05-07 18:10:13 +01:00
Richard Davey
281e84ee9b Start of the Virtual Joystick plugin.
Fixes to Point.angle.
2014-05-07 16:35:08 +01:00
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