Skip to content

Commit 83a0086

Browse files
committed
Lots of new examples and updates.
1 parent 1c577d3 commit 83a0086

42 files changed

Lines changed: 816 additions & 267 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,15 @@ Version 1.0.7 (in progress in the dev branch)
102102
* Group.create now sets the visible and alive properties of the Sprite to the same value as the 'exists' parameter.
103103
* Added Group.total. Same as Group.length, but more in line with the rest of the Group naming.
104104
* Added Sprite.outOfBoundsKill boolean flag. Will automatically kill a sprite that leaves the game World bounds (off by default).
105-
* ArcadePhysics.moveTowardsMouse changed to ArcadePhysics.moveTowardsPointer and now lets you specify which pointer to move towards (defaults to Input.activePointer).
106-
* ArcadePhysics.angleBetweenMouse changed to ArcadePhysics.angleBetweenPointer and now lets you specify which pointer to get the angle to (defaults to Input.activePointer).
107-
* ArcadePhysics.velocityFromAngle and ArcadePhysics.velocityFromRotation added with examples created.
105+
* Lots of changes and fixes in ArcadePhysics, including:
106+
* Functions with "mouse" in the title have been updated to "pointer" to more accurately reflect what they do.
107+
* New velocity functions: moveToObject, moveToPointer, moveToXY
108+
* New acceleration functions: accelerateToObject, accelerateToPointer, accelerateToXY
109+
* New distance functions: distanceBetween, distanceToXY, distanceToPointer
110+
* New angle functions: angleBetween, angleToXY, angleToPointer
111+
* velocityFromAngle and velocityFromRotation added with examples created.
108112
* Fixed the RandomDataGenerator.sow method so if you give in the same seed you'll now get the same results (thanks Hsaka)
109113

110-
111114
* TODO: look at Sprite.crop (http://www.html5gamedevs.com/topic/1617-error-in-spritecrop/)
112115
* TODO: d-pad example (http://www.html5gamedevs.com/topic/1574-gameinputondown-question/)
113116
* TODO: more touch input examples (http://www.html5gamedevs.com/topic/1556-mobile-touch-event/)
233 Bytes
Loading
232 Bytes
Loading
250 Bytes
Loading
245 Bytes
Loading
296 Bytes
Loading
299 Bytes
Loading
248 Bytes
Loading
251 Bytes
Loading
270 Bytes
Loading

0 commit comments

Comments
 (0)