photonstorm
5f455791d4
TypeScript defs update (thanks @cheshirepuss42, ping to @clark-stevenson to ensure merge with his master version :)
2014-04-15 03:24:54 +01:00
photonstorm
3b73c17997
ArcadePhysics.Body.phase is checked in postUpdate to prevent it from being called multiple times in a single frame.
2014-04-15 02:50:25 +01:00
photonstorm
1164bf85ac
Line.angle and Math.angleBetween used Math.atan2 arguments in the wrong order (thanks @jotson, fix #724 )
2014-04-15 02:12:33 +01:00
photonstorm
eeff786eb2
StateManager.restart incorrectly skipped the first additional parameter after clearCache (thanks @mariusbrn, fix #722 )
2014-04-14 23:34:13 +01:00
photonstorm
25a93cf4af
AnimationManager.play will now call Animation.stop on the current animation before switching to the new one (thanks @nihakue, #713 )
2014-04-14 23:29:09 +01:00
photonstorm
5d0ea6453b
AnimationManager.destroy now iterates through child animations calling destroy on all of them, avoiding a memory leak (thanks stauzs)
...
Animation.destroy didn't correctly clear the onStart, onLoop and onComplete signals.
2014-04-14 22:53:05 +01:00
photonstorm
a7f6165e39
InputManager.resetLocked - If the Input Manager has been reset locked then all calls made to InputManager.reset, such as from a State change, are ignored.
...
Keyboard.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
Key.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
2014-04-14 21:53:08 +01:00
photonstorm
055cb8058d
Device.crosswalk detects if your game is running under Intels Crosswalk XDK.
2014-04-14 16:40:14 +01:00
photonstorm
e9cb345261
P2.World.convertTilemap now correctly checks the collides parameter of the tiles as it converts them.
2014-04-14 13:52:53 +01:00
photonstorm
f70e4d7d90
Fixed the use of the destroy parameter in Group.removeAll and related functions (thanks @AnderbergE, fix #717 )
2014-04-14 12:57:29 +01:00
photonstorm
f33ba5dcc7
Timer has removed all use of local temporary vars in the core update loop.
...
Timer.clearPendingEvents will purge any events marked for deletion, this is run automatically at the start of the update loop.
The main Timer loop could incorrectly remove TimeEvent if a new one was added specifically during an event callback (thanks @garyyeap, fix #710 )
2014-04-14 11:51:50 +01:00
photonstorm
0d15350755
Preparing for 2.0.4 development.
2014-04-11 14:29:38 +01:00
photonstorm
cdff873cf7
Updated change log and readme headers.
2014-04-11 13:28:17 +01:00
photonstorm
7b2c3e8e0f
Updated header styles in readme.
2014-04-11 13:15:41 +01:00
photonstorm
4cea8d7bcc
Preparing for final 2.0.3 release. Updated docs, readme and build files.
2014-04-11 13:09:28 +01:00
photonstorm
a2b2d558a5
jsdoc and jshint fixes.
2014-04-11 03:02:19 +01:00
photonstorm
3d7ca639c3
Fixed the vectors used in the BlurX and BlurY filters (thanks @nickryall, fix #668 )
2014-04-11 01:01:47 +01:00
photonstorm
77f8e5eefc
P2 Fixtures Collection Class (@georgiee please test it works ok! #704 )
2014-04-11 00:43:30 +01:00
photonstorm
3a1c202e24
jsdoc fixes for SignalBindings.
2014-04-11 00:19:37 +01:00
photonstorm
a01cc2e1ca
Objects with an InputHandler now deactivate it when the object is removed from a Group but not destroyed ( fix #672 )
...
Lots of jsdoc fixes in Body and World.
Removed un-used events from World (such as onImpact).
2014-04-11 00:06:22 +01:00
photonstorm
9ddcc5d0ea
p2.World.defaultRestitution has been deprecated and is now p2.World.restitution.
...
p2.World.defaultFriction has been deprecated and is now p2.World.friction.
p2.World now uses 4 bodies for the world boundaries, rather than 1 body with 4 shapes. This helps the broadphase massively.
p2.World bounds are now included in the callback events such as beginContact and impact events.
2014-04-10 17:11:16 +01:00
photonstorm
780fb48ab3
P2.World has a new contactMaterial property, which can be configured like a normal P2 Contact Material and is applied when two bodies hit that don't have defined materials.
2014-04-10 14:51:20 +01:00
photonstorm
78aa24f04b
Emitter.setScale now allows you to scale the x and y axis of the particles independently.
2014-04-10 05:18:06 +01:00
photonstorm
c8ca3d1809
Emitter now calls the Phaser.Particle.onEmit function, which is left empty for you to override and add in custom behaviours.
2014-04-10 01:37:10 +01:00
photonstorm
95b0532f59
Emitter.setScale has a new 'rate' parameter which allows particles to change in scale over time, using any Easing value or timescale.
...
Emitter.setAlpha has a new 'rate' parameter which allows particles to change alpha over time, using any Easing value or timescale.
Emitter.bringToTop and Emitter.sendToBack are booleans that let you optionally set the display order of the Particle when emitted.
2014-04-10 01:36:05 +01:00
photonstorm
770ced8ac1
Group.customSort allows you to sort the Group children based on your own sort function.
2014-04-10 00:56:53 +01:00
photonstorm
be52515ed4
PluginManager parent parameter removed as it's redundant. Also most core functions tidied up and jsdocs fixed.
2014-04-09 16:12:25 +01:00
photonstorm
50981fd729
Emitter now has minParticleAlpha and maxParticleAlpha values for setting a random alpha on emitted particles.
...
Emitter.particleAnchor allows you to control the anchor of emitted Particles. Defaults to 0.5 (same as before) but now under your control.
Emitter now emits Phaser.Particle objects instead of Phaser.Sprites, which can be extended as required.
Emitter has had various local properties removed that were already declared in Phaser.Group which it extends.
2014-04-09 14:29:23 +01:00
photonstorm
73d0414672
Grunt update to dev dependencies (thanks @xtian, #695 )
2014-04-09 12:23:17 +01:00
photonstorm
b9cb2417b6
Group.removeBetween now properly iterates through the children.
2014-04-09 03:19:36 +01:00
photonstorm
01ccbd97c0
Key.enabled boolean allows you to toggle if a Key processes its update method or dispatches any events without deleting and re-creating it.
2014-04-09 02:29:41 +01:00
photonstorm
e764be430e
Emitter.minParticleScale and maxParticleScale wasn't resetting the Body size correctly.
2014-04-09 00:59:53 +01:00
photonstorm
8fc2a465cd
New Phaser package, small docs updates and preparing P2.World for new bounds code and v0.5.0 migration.
2014-04-08 03:31:13 +01:00
photonstorm
01eec6cef5
Keyboard.stop nulls the function references after removing the event listeners (thanks @bmceldowney, #691 )
2014-04-07 12:29:26 +01:00
photonstorm
bf32590cfe
Fixed a few jsdoc errors.
2014-04-07 12:29:26 +01:00
photonstorm
38d722c1e5
Tilemap.removeTile(x, y, layer) lets you remove the tile at the given coordinates and updates the collision data.
...
Tilemap.removeTileWorldXY lets you remove the tile at the given pixel value coordinates and updates the collision data.
If you pass `null` to Tilemap.putTile as the tile parameter it will pass the call over to Tilemap.removeTile.
2014-04-01 13:36:42 +01:00
photonstorm
61429d8467
StateManager.restart allows you to quickly restart the *current* state, optionally clearing the world and cache.
2014-04-01 11:25:04 +01:00
photonstorm
a4ed94e039
Key.reset now clears any callbacks associated with the onDown and onUp events and nulls the onHoldCallback if set. Key.reset is called by Keyboard.reset when changing state.
2014-04-01 04:41:43 +01:00
photonstorm
439cefd481
ArcadePhysics.Body.hitTest(x, y) will return a boolean based on if the given world coordinate are within the Body or not.
...
Fixed jsdoc method tags in Body.
2014-04-01 03:54:20 +01:00
photonstorm
03b80887f2
SoundManager.removeByKey(key) will remove all sounds from the SoundManager that have a key matching the given value.
2014-04-01 03:42:30 +01:00
photonstorm
3728f25d68
SoundManager.remove(sound) now lets you remove a sound from the SoundManager, destroying it in the process.
...
Sound.destroy will remove a sound and all local references it holds, optionally removing itself from the SoundManager as well.
2014-04-01 03:38:13 +01:00
photonstorm
1f32ef721d
The Phaser Gruntfile is now split up into option tasks (thanks @xtian, #638 )
2014-04-01 01:47:42 +01:00
photonstorm
5ed79dfefe
The Phaser jshint process is now running on Travis (thanks @xtian, #656 )
2014-04-01 01:24:49 +01:00
photonstorm
5559fea0f8
The State.update function (and thus the update of any sub-classed Sprites or other objects) is now called before Stage, Tweens, Sound, Input, etc ( #662 )
2014-04-01 01:01:15 +01:00
photonstorm
0198a77fe6
Phaser.Point.centroid static function added to calculate the centroid or midpoint of an array of points (thanks @lewster32, #675 )
2014-04-01 00:42:13 +01:00
photonstorm
e3f1c7b21c
Added Pointer.positionUp which records the last point at which the pointer left the screen / was raised (thanks @Cryszon ,#676)
2014-04-01 00:40:26 +01:00
photonstorm
3f8911d95f
SoundManager.boot will check to see if the AudioContext was created before carrying on (thanks @keyle, fix #669 )
2014-03-31 11:22:44 +01:00
photonstorm
16853d0e82
Updated to Pixi 1.5.2 release.
2014-03-31 11:04:02 +01:00
photonstorm
686706173a
Timers can now have a start delay value (thanks @georgiee, #660 )
2014-03-31 10:49:53 +01:00
photonstorm
1a92f5b7d0
If you inputEnable = false a gameobject you couldn't re-enable it again using inputEnable = true, only directly via the handler (thanks @nickrall, fix #673 )
...
Updated the PhysicsEditor plugin to maintain position, radius, mask bits, category bits and sensor flags (thanks @georgiee, #674 )
2014-03-31 10:43:43 +01:00