Richard Davey
2edcd1f7a6
Merge pull request #834 from WillHuxtable/dev
...
getText returns a string, not an Object.
2014-05-19 18:24:02 +01:00
Will Huxtable
6291f6de2c
getText returns a string, not an Object.
2014-05-19 18:01:37 +01:00
photonstorm
c9656e48de
Group.hasProperty fixed to not use hasOwnProperty, but a series of in
checks (thanks @mgiuffrida for the idea, #829 )
2014-05-19 13:11:58 +01:00
photonstorm
1a7305b0ad
New movement data added for a Pointer Locked mouse (Pointer.movementX/Y) (thanks @woutercommandeur, #831 )
2014-05-19 11:51:25 +01:00
Richard Davey
ee30dd634a
Merge pull request #831 from woutercommandeur/dev
...
Add movement data for pointerlocked mouse
2014-05-19 11:48:25 +01:00
photonstorm
da75a22e82
Cache.checkKey added - allows you to pass in a Cache type and a key and return a boolean.
...
Cache.checkCanvasKey(key) - Check if a Canvas key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkTextureKey(key) - Check if a Texture key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkSoundKey(key) - Check if a Sound key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkTextKey(key) - Check if a Text key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkPhysicsKey(key) - Check if a Physics key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkTilemapKey(key) - Check if a Tilemap key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkBinaryKey(key) - Check if a Binary key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkBitmapDataKey(key) - Check if a BitmapData key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkBitmapFontKey(key) - Check if a BitmapFont key exists in the cache (thanks to @delta11 for the proposal)
Cache.checkJSONKey(key) - Check if a JSON key exists in the cache (thanks to @delta11 for the proposal)
2014-05-19 11:34:14 +01:00
Wouter Commandeur
ce34da80c6
Only update movement when mouse is locked
2014-05-17 12:01:40 +02:00
Wouter Commandeur
e041eea968
whitespace adjustments
2014-05-17 11:32:11 +02:00
Wouter Commandeur
449c7ebfb0
Add mouse movement to pointer. This should be used with pointerLock.
2014-05-17 11:27:31 +02:00
photonstorm
cfadaf3e70
Tilemap.layer is a getter/setter to the current layer object (which can be changed with Tilemap.setLayer)
2014-05-15 22:30:32 +01:00
photonstorm
1d13855abb
Tilemap.searchTileIndex allows you to search for the first tile matching the given index, with optional skip and reverse parameters.
2014-05-15 19:56:56 +01:00
photonstorm
3f3655a138
jshint fix
2014-05-15 15:38:28 +01:00
photonstorm
2650e6c47e
RetroFont.text would throw WebGL errors due to an issue with Pixi.RenderTexture. Fixed in Phaser and submitted code to Pixi.
...
RenderTexture.resize would throw WebGL errors due to an issue with Pixi.RenderTexture. Fixed in Phaser and submitted code to Pixi.
2014-05-15 15:32:59 +01:00
Richard Davey
21011c3d03
mouseout handler
2014-05-14 22:56:42 +01:00
Richard Davey
5c121eeb71
Merge pull request #826 from clark-stevenson/patch-1
...
Update phaser.d.ts
2014-05-14 17:30:24 +01:00
clark-stevenson
566b870785
Update phaser.d.ts
...
Updates from past week
2014-05-14 15:54:40 +01:00
photonstorm
5d8a11ae29
Input.addMoveCallback allows you to bind as many callbacks as you like to the DOM move events (Input.setMoveCallback is now flagged as deprecated)
...
Input.deleteMoveCallback will remove a previously set movement event callback.
2014-05-14 03:01:24 +01:00
photonstorm
b90bcc442c
If an object was drag enabled with bringToTop, the onDragStop event wouldn't fire until the mouse was next moved (thanks @alpera, fix #813 )
2014-05-14 02:42:55 +01:00
photonstorm
bdcc9fcbc4
Updated jsdocs re: Image/Sprite.crop ( #820 )
2014-05-14 02:18:18 +01:00
photonstorm
cc9a234c8c
Color.getRGB would return incorrect color components if a color value without alpha was given, now works with both 0xRRGGBB and 0xAARRGGBB.
...
Color.getWebRGB now works regardless if you give an 0xRRGGBB or 0xAARRGGBB color value.
2014-05-14 02:09:44 +01:00
photonstorm
798d7a4fd1
Stage.backgroundColor now properly accepts hex #RRGGBB and color values 0xRRGGBB again ( fix #785 )
2014-05-14 01:59:21 +01:00
photonstorm
0bfa249ed5
Key.justPressed and justReleased incorrectly set the delay value to 2500ms. Now defaults to 50ms (thanks @draklaw, fix #797 )
2014-05-14 00:24:09 +01:00
photonstorm
8d8c3cb595
The Tiled JSON parser will now include Tiled polygons, ellipse and rectangle geometry objects in the resulting map data (thanks @tigermonkey, #791 )
2014-05-14 00:10:08 +01:00
Richard Davey
5770b654a6
Merge pull request #791 from tigermonkey/dev
...
[tilemap] parse polygon, ellipses and rectangles
2014-05-14 00:06:53 +01:00
photonstorm
b2c68c1369
Graphics.drawTriangles will draw an array of vertices to the Graphics object (thanks @codevinsky, #795 )
...
Polygon.area will calculate the area of the Polygon (thanks @codevinsky, #795 )
2014-05-14 00:04:31 +01:00
photonstorm
6f1ba28b73
README updates.
2014-05-13 23:43:44 +01:00
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