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
b6ad11701e
Various jshint fixes.
2014-04-01 01:30:20 +01:00
Richard Davey
e1529a3ffb
Merge pull request #662 from ralphsmith80/master
...
issue#661 update state before values are cleared
2014-04-01 00:56:35 +01:00
photonstorm
9762bff5eb
Updated docs to specify callback parameter order ( #667 )
2014-04-01 00:50:24 +01:00
photonstorm
407f71b70e
Tidied up Sound.js
2014-04-01 00:40:26 +01:00
Richard Davey
12b99a1ae1
Merge pull request #675 from lewster32/dev
...
Added Phaser.Point.centroid function.
2014-04-01 00:40:11 +01:00
Richard Davey
9a663d0d78
Merge pull request #676 from Cryszon/pointerPositionUp
...
Added positionUp to Pointer
2014-04-01 00:28:08 +01:00
nickryall
76736a666e
Rounded lineJoins for text stroke
2014-04-01 09:03:14 +13:00
nickryall
5f7d38e9fd
Rounded lineJoins for text stroke
2014-04-01 09:00:35 +13:00
nickryall
772d9ca9f2
Renable input on Phaser.Image fix
2014-04-01 08:54:08 +13:00
Kimmo Salmela
a23c6ee6fd
Added positionUp to Pointer
2014-03-31 20:36:51 +03:00
Lewis Lane
1d1e47d68d
Update Point.js
2014-03-31 16:03:18 +01:00
Lewis Lane
14b16fb583
Update Point.js
2014-03-31 16:01:35 +01:00
Lewis Lane
c5629008e9
Updated Phaser.Point.centroid function.
...
Performance boosts and bugfix with averaging.
2014-03-31 16:00:55 +01:00
Lewis Lane
5e2e520e26
Added Phaser.Point.centroid function.
...
Added static Phaser.Point.centroid function to calculate the centroid or midpoint of an array of points.
2014-03-31 15:21:40 +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
4f5b329c07
Fixed Pixi UMD wrapper.
2014-03-31 11:06:15 +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
Richard Davey
d57cc9a9e0
Merge pull request #660 from georgiee/timer-start-delay2
...
Allow a timer to have a start delay
2014-03-31 10:46:30 +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
nickryall
8400df1b33
Renable input on Phaser.Image fix
2014-03-31 21:29:35 +13:00
Georgios Kaleadis
0d77b36fc4
fixed p2 physics loading format and added the ability to extract a single fixture
2014-03-31 11:19:08 +03:00
Georgios Kaleadis
0a456d81c1
remove physics loader flags in p2 world, fix naming in loader
2014-03-31 10:46:17 +03:00
Ralph Smith
7e9fbd3c27
issue#661 update state before values are cleared
...
this prevent loosing state values related to physics bodys
and inputs before `state.update` is called.
2014-03-28 09:12:32 -05:00
Georgios Kaleadis
697ba8b35b
allow a timer to have a start delay
2014-03-28 13:06:25 +02:00
Georgios Kaleadis
d2a348f0bb
return the result of body#setCircle
2014-03-28 09:48:23 +02:00
photonstorm
76c0913b37
Setting up for 2.0.3 development.
2014-03-28 02:18:58 +00:00
photonstorm
5b73bb21bb
Sprite would glitch if it had an ArcadePhysics Body that was re-positioned out of loop.
...
Sprite would "fly off" if it had an ArcadePhysics Body that was re-positioned during an input handler.
Newly generated docs
2014-03-28 01:42:49 +00:00
Richard Davey
2092a7e360
Merge pull request #653 from bmceldowney/dev
...
Removing tilemap layer retrieval for object layers in convertCollisionObjects()
2014-03-26 15:48:42 +00:00
Richard Davey
06c953a293
Merge pull request #647 from xtian/grunt-jshint
...
Run jshint as part of build process and fix jshint errors
2014-03-26 15:46:35 +00:00
Ben McEldowney
2cd538e498
removing erroneous tilemap layer retrieval for object layers in convertCollisionObjects()
2014-03-26 07:48:47 -07:00
photonstorm
953ae83350
Updated TS defs ( fix #650 )
2014-03-26 13:24:11 +00:00
photonstorm
fc0e239719
ArcadePhysics.Body preUpdate has been modified to stop Sprites with non-1 scaling from gaining delta and moving off the screen ( fix #644 ).
...
Lots of ArcadePhysics.World methods have been marked as private where they shouldn't be called directly (separateX, etc)
2014-03-26 10:48:30 +00:00
Christian Wesselhoeft
428505f600
Enable jshint immed
flag.
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
3b4c034452
Constrain Windows Scripting Host env to Loader.js
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
f409a735f0
Fix jshint issues in src/Phaser.js
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
bdbf2783ad
Fix jshint issues in src/gameobjects
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
04d88b6c35
Fix jshint issues in src/geom
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
ebad4c1d38
Fix jshint issues in src/input
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
2ea76d1216
Fix jshint issues in src/loader
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
debb6bdcf9
Fix jshint issues in src/core
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
9faa27ce4f
Fix jshint issues in src/animation
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
35c24f4ec3
Fix jshint issues in src/utils
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
1c286c1ae5
Fix jshint issues in src/physics/p2
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
b375daa3f6
Fix jshint issues in src/physics/ninja
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
5f267baeb0
Fix jshint issues in src/physics/arcade
2014-03-25 14:56:04 -07:00
Christian Wesselhoeft
0b08877f76
Fix jshint issues in src/particles/arcade
2014-03-25 14:56:04 -07:00
Christian Wesselhoeft
89a1639952
Fix jshint issues in src/tilemap
2014-03-25 14:56:04 -07:00
Christian Wesselhoeft
61f18b675c
Trim trailing whitespace.
2014-03-25 14:56:04 -07:00
photonstorm
344ab46d78
Line.fromSprite now sets "fromCenter" to false by default as Sprite.center is deprecated in 2.x. Documentation and Examples updated to reflect this.
2014-03-25 12:44:20 +00:00
photonstorm
6483b61db7
Tween.generateData would enter an eternal loop if the total resulted in a float. Now wrapped in Math.floor.
2014-03-25 03:08:51 +00:00
photonstorm
87a0fb86b8
All Timer events are now increased by the game time on start.
2014-03-24 12:15:14 +00:00
photonstorm
622957c9b0
Timer objects incorrectly set the first tick value on events if you added the events prior to starting them.
2014-03-24 02:25:35 +00:00
photonstorm
26a89f0b84
New build files with tilemap callback fixes in.
2014-03-24 01:39:09 +00:00
photonstorm
49bcd2edd2
Tilemap fixes.
2014-03-24 00:30:05 +00:00
photonstorm
e1c98ba617
You can now create multiple blank layers in a Tilemap.
2014-03-23 23:58:01 +00:00
photonstorm
0c156ccd90
Fixed some md issues in Contributing and Readme.
...
Fixed game reference in Emitter.
2014-03-23 12:07:55 +00:00
Richard Davey
eddf1edead
Tilemap updates
2014-03-23 10:35:31 +00:00
photonstorm
539d70d581
Testing multi layer blank map updates.
2014-03-22 08:33:38 +00:00
Georgios Kaleadis
c2964857a3
multiple circle shapes in a body with position
2014-03-21 20:45:25 +01:00
photonstorm
21c0be4d02
BitmapDatas when used as Game Object textures in WebGL now update themselves properly.
...
Timer.ms now correctly reports the ms time even if the Timer has been paused (thanks Nambew, fix #624 )
2014-03-21 18:37:54 +00:00
photonstorm
0fa54b0b24
TileSprites now emit outOfBounds and enterBounds events accordingly.
...
TileSprites working with physics bodies again.
2014-03-21 18:04:24 +00:00
photonstorm
9c8f01cd7f
The volume given in Sound.play now over-rides that set in Sound.addMarker if specified ( fix #623 )
2014-03-21 15:43:59 +00:00
Richard Davey
51a2002bf8
Merge pull request #622 from georgiee/fix-prismatic-naming
...
Fixed bug in prismatic joint. Lock flag not inverted, updated naming & description
2014-03-21 14:09:14 +00:00
photonstorm
0fca997d43
P2.Body.loadPolygon no longer modifies the Cache array ( fix #613 )
2014-03-21 13:46:35 +00:00
Georgios Kaleadis
c686ea0eb5
fixed naming for rotation lock in prismatic joint
2014-03-21 14:13:06 +01:00
Richard Davey
f0034008f5
Merge pull request #614 from georgiee/physics-phaser-exporter
...
Custom PhysicsEditor export & new p2 polygon parsing
2014-03-21 11:27:13 +00:00
photonstorm
b9fcda73ca
ArcadePhysics.World.seperate will now check gravity totals to determine separation order. You can set World.forceX to true to always separate on X first and skip this check.
2014-03-21 11:22:56 +00:00
photonstorm
111164e221
If no seed was given in the Game config object, the RandomDataGenerator wouldn't be started (thank tylerjhutchison fix #619 )
2014-03-21 11:22:56 +00:00
Georgios Kaleadis
f56f1674f7
pivots were wrong signed, everything was upside down
2014-03-21 09:49:51 +01:00
Georgios Kaleadis
a4982fa6e2
better fixture handling
2014-03-20 19:38:47 +01:00
Georgios Kaleadis
277afa1415
method docs
2014-03-20 15:46:54 +01:00
Georgios Kaleadis
af847de963
reverted p2 body debug
2014-03-20 15:44:41 +01:00
Georgios Kaleadis
45a41af766
exporter update
2014-03-20 15:27:50 +01:00
Georgios Kaleadis
66fa003901
custom export from physics editor
2014-03-20 13:38:25 +01:00
photonstorm
634b1d1093
Emitter.friction property removed and replaced with Emitter.particleDrag, which is now correctly applied.
...
ArcadePhysics.Body.reset incorrectly set the Body.rotation to Sprite.rotation instead of angle.
Emitter.emitParticle resets the rotation on the particle to zero before emitting it.
Lots of fixes to the TypeScript definitions file (thanks as always to clark-stevenson for his tireless work on these)
Emitters now bring the particle they are about to emit to the top of the Group before doing so. Avoids particles hidden behind others.
ArcadePhysics.Body.setSize corrected to take the parameters as positive, not negative values.
ArcadePhysics.Body now checks the Sprite scale automatically and adjusts the body size accordingly (fix #608 )
Emitter.particleClass can now be set to any object that extends Phaser.Sprite, which will be emitted instead of a regular Sprite.
2014-03-20 03:48:54 +00:00
photonstorm
684ee9c064
ArcadePhysics.Body has a deltaMax object, which allows you to cap the delta applied to the position to +- this value.
...
ArcadePhysics.Body now checks the Sprite scale automatically and adjusts the body size accordingly (fix #608 )
2014-03-20 00:20:02 +00:00
Georgios Kaleadis
5b78c5c46e
fixed wrong motion state constants in phaser p2 body
2014-03-19 22:56:26 +01:00
photonstorm
22b472ba4d
Removed rogue console.log
2014-03-19 13:23:46 +00:00
photonstorm
2d08fab48e
When creating a Sprite (via Group.create or directly) with exists = false and a P2 body, the body is not added to the world.
...
Every Input class now checks to see if it has already been started. If so it doesn't add the listeners again unless they have been nulled.
2014-03-19 13:22:04 +00:00
photonstorm
164f3cbe83
When creating a Sprite (via Group.create or directly) with exists = false and a P2 body, the body is not added to the world.
2014-03-19 13:09:29 +00:00
photonstorm
96365a3a1f
The StateManager is now responsible for clearing down input, timers, tweens, physics, camera and the World display list.
...
Removed the use of Int16Array from all Game Objects, swapped for standard Array. Phaser now runs on Android 2.x again (fix #590 )
2014-03-19 12:05:19 +00:00
photonstorm
5d40365b87
InputHandler.dragFromCenter will now work regardless of the anchor point of the Sprite.
2014-03-19 05:21:26 +00:00
photonstorm
84df7bf320
Sprite.events.onEnterBounds added. This is dispatched if the Sprite leaves the bounds but then returns. The opposite of onOutOfBounds.
2014-03-19 04:17:37 +00:00
photonstorm
0a42ac39b9
ArcadePhysics.World now has a checkCollision object which can be used to toggle collision against the 4 walls of its bounds.
2014-03-19 04:03:21 +00:00
photonstorm
2cc1a45f9a
Fixed SpriteBounds camera placement in Debug (again).
...
Removed un-needed cache vars from ArcadePhysics.World.
Tidied up ArcadePhysics.Body and fixed rotation parameters.
Every single Arcade Physics Example now runs perfectly under this release.
2014-03-19 03:55:44 +00:00
photonstorm
9959e21925
Debug.spriteBounds will now take the position of the camera into consideration when rendering the bounds ( fix #603 )
2014-03-19 02:31:37 +00:00
photonstorm
79ffda3f18
ArcadePhysics.separate doesn't pass over to seperateX/Y if overlapOnly is true ( fix #604 )
...
ArcadePhysics.collideSpriteVsSprite checks if both objects have bodies before processing.
ArcadePhysics.Body now checks the ArcadePhysics.World bounds, not the game bounds.
ArcadePhysics.Body has reverted to the 1.1.3 method of preUpdate, so you can now position sprites with x/y, drag them, etc, regardless of the Body.moves flag (issue #606 )
ArcadePhysics.World now has setBounds and setBoundsToWorld methods, which are called automatically on world resizing.
ArcadePhysics.Body no longer sets the offset to match the anchor.
2014-03-19 02:28:20 +00:00
photonstorm
9490041c79
ArcadePhysics.separate doesn't pass over to seperateX/Y if overlapOnly is true ( fix #604 )
...
ArcadePhysics.collideSpriteVsSprite checks if both objects have bodies before processing.
2014-03-19 02:05:29 +00:00
photonstorm
11fdd62436
World.destroy incorrectly clashed with the Group.destroy method it over-rode, renamed to World.shutdown and updated StateManager accordingly.
...
World.shutdown now removes all children iteratively, calling destroy on each one, ultimately performing a soft reset of the World.
Objects with a scale.x or y of 0 are no longer considered valid for input (fix #602 )
InputHandler will set the browser pointer back to default if destroyed while over (fix #602 )
Group.destroy has a new parameter: `soft`. A soft destruction won't remove the Group from its parent or null game references. Default is `false`.
InputHandler.validForInput is a new method that checks if the handler and its owner should be considered for Pointer input handling or not.
Group.replace will now return the old child, the one that was replaced in the Group.
2014-03-19 00:54:49 +00:00
photonstorm
eec9f70c1c
Math.removeRandom allows you to remove (and return) a random object from an array.
...
Updated TypeScript defs to fix getRandom (fix #583 )
2014-03-18 16:51:58 +00:00
photonstorm
870d534e50
Fixed the Loader.preloadSprite crop effect on WebGL.
2014-03-18 16:23:44 +00:00
photonstorm
a7ff5f884c
Added basic Webcam plugin.
...
Added Device.getUserMedia detection.
Updated config.php so you can toggle physics engines on/off via flags.
Updated Gruntfile.js so it builds a Phaser + Pixi but no Physics libs.
2014-03-18 15:14:28 +00:00
Kimmo Salmela
97a838edbb
Added support for radians in wrapAngle
...
My first time proposing a change in GitHub, so I hope I did it correctly.
2014-03-18 13:40:07 +02:00
photonstorm
928b883c17
Swapped the order of the _pollGamepads gamepads check, to stop the Chrome 'webkitGamepads is deprecated' error in the console.
2014-03-18 00:10:43 +00:00
photonstorm
4a407f12a1
Button.onInputUpHandler wouldn't set an upFrame for a frame ID of zero, made the check more strict.
2014-03-17 23:57:27 +00:00
photonstorm
46d5069110
Tilemap.createFromObjects has a new parameter: adjustY, which is true by default. Because Tiled uses a bottom-left coordinate system Phaser used to set the Sprite anchor to 0,1 to compensate. If adjustY is true it now reduces the y value by the object height instead.
2014-03-17 23:54:04 +00:00
photonstorm
90ef694347
Tilemap.createFromObjects used to set the Sprite anchor to 0,1 because Tiled uses a bottom-left coordinate system. It now calculates the offset in TilemapParser.
2014-03-17 23:27:13 +00:00
photonstorm
2ecb0c7c76
P2.removeBody will check if the body is part of the world before removing, this avoids a TypeError from the p2 layer.
2014-03-17 22:34:19 +00:00