Richard Davey
bae732ca9e
Merge pull request #2027 from bsparks/dev
...
utilize the heal method
2015-08-26 23:38:40 +03:00
Richard Davey
0689395aa9
Merge pull request #2033 from clark-stevenson/dev
...
Minor TypeScript definition edits.
2015-08-26 23:30:38 +03:00
Richard Davey
a1bd35fc35
Tidied up formatting and improved jsdocs.
2015-08-26 19:13:46 +01:00
Clark Stevenson
77329e7889
Minor TypeScript definition edits.
2015-08-26 19:07:56 +01:00
Richard Davey
b4a72b8747
Merge pull request #2025 from rwrountree/dev
...
Optimize the average function in math.js
2015-08-26 21:07:24 +03:00
Richard Davey
31d6c4d43c
Merge pull request #2029 from milkey-mouse/dev
...
Fixed TypeScript definition for replaceRGB
2015-08-26 21:04:19 +03:00
Richard Davey
8b6d696316
jsdoc fix.
2015-08-26 03:59:18 +01:00
Milkey Mouse
91997662b4
Fixed TypeScript definition for replaceRGB
...
BitmapData.replaceRGB's 'region' argument should be optional.
2015-08-25 17:37:58 -07:00
Ben Sparks
b7efb93698
utilize the heal method instead of just adding to health when reviving, so that maxHealth is respected
2015-08-25 14:42:02 -07:00
photonstorm
1e88bdda70
Loader.bitmapFont wouldn't automatically set the atlasURL
value if just the key was given.
2015-08-25 13:46:28 +01:00
Rusty Rountree
f017db806a
Phaser.Math.fuzzyCeil and Phaser.Math.fuzzyFloor should not return boolean values as stated in @return section of the comments
2015-08-25 04:06:06 -05:00
Rusty Rountree
92bac852c8
Optimize the average function in math.js
2015-08-25 02:16:31 -05:00
photonstorm
482d3c9882
Preparing for 2.4.4 dev.
2015-08-24 16:01:58 +01:00
photonstorm
db641ca82e
Updated date in the readme.
2015-08-24 15:56:06 +01:00
photonstorm
486c15f16f
New docs.
2015-08-24 15:43:45 +01:00
photonstorm
bf862964d2
Phaser 2.4.3 Release.
2015-08-24 13:55:00 +01:00
photonstorm
94223c66b7
Updated blend mode multiply check ( #1994 )
2015-08-24 13:53:46 +01:00
photonstorm
cc7b632a37
Phaser.TilemapParser.INSERT_NULL is a new boolean that controls what happens when the parser encounters an empty tile: When scanning the Tiled map data the TilemapParser can either insert a null value (true) or a Phaser.Tile
instance with an index of -1 (false, the default). Depending on your game type depends how this should be configured. If you've a large sparsely populated map and the tile data doesn't need to change then setting this value to true
will help with memory consumption. However if your map is small, or you need to update the tiles (perhaps the map dynamically changes during the game) then leave the default value set (thanks #1982 )
2015-08-24 12:36:23 +01:00
photonstorm
0cce3f8287
Enabling a filter on a display object that had a blend mode set would cause the object to become invisible. The two cannot be combined, so when you set a filter on a display object it now automatically resets the blend mode to NORMAL
. The same does not happen in reverse however, so if you've got a filter set and then change the blend mode it will still break. Be careful to capture this yourself (thanks @wayfu #1994 )
2015-08-24 12:26:02 +01:00
photonstorm
5056eedb58
Optimised local vars to reduce file size.
...
Trying out null tile properties.
2015-08-24 12:03:32 +01:00
photonstorm
4ab5a07abf
jsdocs fix.
2015-08-24 12:03:03 +01:00
photonstorm
09f5742410
Tilemap.shuffle was calling the deprecated Phaser.Utils.shuffle, which has now moved to Phaser.ArrayUtils.shuffle.
2015-08-24 12:02:43 +01:00
photonstorm
bcedd921b7
Cache.addSpriteSheet didn't include default values for the frameMax
, margin
and spacing
arguments (thanks @vladkens #2017 #2018 )
2015-08-24 11:43:34 +01:00
photonstorm
845a14ff55
TilingSprite._renderCanvas wasn't correctly allowing for pixel rounding (thanks @ximop #2022
2015-08-24 11:38:59 +01:00
photonstorm
226b7070a8
Fixed issue with an extra 4px being added to the canvas elements because the display type wasn't set.
2015-08-24 11:32:32 +01:00
photonstorm
a5a503b02c
Phaser 2.4.3-RC1 build files.
2015-08-21 16:25:41 +01:00
photonstorm
5ffb5b558d
Tilemap.createFromObjects has been strengthened so that will only create Sprites for matching gids/ids/names. It also only sets the Sprite width and height values if they are present in the Tiled data (thanks @pparke #2012 )
2015-08-20 13:22:06 +01:00
photonstorm
22f7aacfcb
Added frameBased to the TweenManager and made Tween.frameBased reference that setting, allowing you to set it once ( #2015 )
2015-08-20 12:59:06 +01:00
photonstorm
a9354d4a3f
Added withinGame to Pointer Debug.
2015-08-20 12:48:09 +01:00
photonstorm
4fa1ffb4cf
JSDocs update.
2015-08-20 12:47:59 +01:00
photonstorm
99fbf35236
* Pointer.withinGame is no longer automatically set to 'false' in the Pointer.stop method - it will check if the Pointer actually is within the stage bounds and only set withinGame
to false if it's outside the bounds.
...
* MSPointer now has an `onPointerUpGlobal` handler for when the pointer is released outside of the canvas, but still within the browser window. This means that in IE11 a Sprites `onInputUp` event will now trigger even when outside the canvas (thanks @bvargish #2000 )
* MSPointer now has handles for the pointer being over and outside of the canvas element, which sets the Pointer.withinGame booleans accordingly. It also triggers the Mouse.mouseOutCallback and Mouse.mouseOverCallback callbacks respectively.
* The MSPointer event listeners have been renamed to all lower-case, i.e. 'pointerDown' is now 'pointerdown'.
2015-08-20 12:47:50 +01:00
photonstorm
55a7699381
Setting a P2.Body from Static or Kinematic to Dynamic will now automatically adjust the Body.mass to be 1 (thanks @wayfu #2005 )
2015-08-20 11:19:30 +01:00
Richard Davey
994a7dae73
jsdoc fix #2013
2015-08-19 22:19:55 +01:00
photonstorm
103c37cd42
BitmapData.drawFull draws the given Game Object or Group to a BitmapData and then recursively iterates through all of its children, including children of Game Objects and Groups. It can draw Text, BitmapText, Sprites, Images, Emitters and Graphics objects. It's perfectly valid to pass in game.world
as the parent object, and it will iterate through the entire display list.
2015-08-19 14:19:26 +01:00
photonstorm
176289f514
Video.stop now removes the 'playing' event listener, which stop Videos set to loop from throwing errors after being destroyed.
2015-08-18 16:04:10 +01:00
photonstorm
b1a05a6f52
BitmapText.font failed to pull the new font from the Phaser Cache, stopping it from updating properly (thanks @AbrahamAlcaina #2001 )
2015-08-18 13:48:08 +01:00
Richard Davey
4c55dddba6
Merge pull request #1998 from cloakedninjas/dev
...
Adding missing event handlers in Typescript definitions
2015-08-18 15:17:49 +03:00
Richard Davey
4b4ba34c58
Merge pull request #1999 from qdrj/dev
...
Fix JS doc and typescript definitions for cache.getRenderTexture
2015-08-18 15:04:38 +03:00
photonstorm
ac77bb8e46
Fixed download links.
2015-08-18 12:40:24 +01:00
Vladislav Forsh
c418ccb0b2
Fix 'unable to locate jsdoc' error while building docs.
2015-08-11 21:46:55 +03:00
Vladislav Forsh
a177c332e6
Remove trailing comma.
2015-08-11 21:42:24 +03:00
Vladislav Forsh
888f88ece8
Fixed js doc for cache.getRenderTexture
2015-08-11 20:31:31 +03:00
Vladislav Forsh
6b6c58230b
Fixed typescript definitions. cache.getRenderTexture() actually returns not just texture but Object with texture and frame.
2015-08-11 20:29:10 +03:00
cloakedninjas
6d9240b176
Adding missing event handlers in Typescript definitions
2015-08-11 15:56:56 +01:00
nickryall
57aaf23238
Fix for fullscreen retina
2015-08-09 20:32:04 +12:00
Richard Davey
19584b78a3
Readme update.
2015-08-07 02:56:44 +01:00
Richard Davey
7fbeb1c062
BitmapData.line draws a line to the BitmapData in the color and thickness specified.
...
Lots of BitmapData updates to use local vars and 'op' property, cutting down code size.
2015-08-07 02:48:00 +01:00
Richard Davey
fc8bff7b9e
jshint fix.
2015-08-07 01:41:59 +01:00
Richard Davey
7588e123c7
Line.centerOn will position the Line so that its midpoint lays on the coordinates given.
2015-08-07 01:40:37 +01:00
Richard Davey
614b84e2ea
* Line.rotateAround allows you to rotate a Line around the given coordinates (in world space)
...
* Point.rotate uses a faster and simpler rotation function when no distance argument is specified.
* Line.rotate used a calculation method which resulted in the line growing (or shrinking) in length over time, the more it was rotated. The new method never changes the lines length.
2015-08-07 01:35:31 +01:00