Commit graph

566 commits

Author SHA1 Message Date
photonstorm
19ddad8095 Mouse handler updates. 2013-11-04 20:44:32 +00:00
Richard Davey
9022a2f9d3 Merge pull request #160 from cocoademon/camera_shake
Add a postUpdate function to plugins
2013-11-03 18:58:04 -08:00
Richard Davey
0e84b7ccc9 Merge pull request #162 from beeglebug/button
Button now goes back to over state when setFrames used in action
2013-11-03 18:39:54 -08:00
Richard Davey
a5c8b2509c Merge pull request #167 from wKLV/dev
Mouse now knows what button is clicked
2013-11-03 18:21:53 -08:00
Richard Davey
c1d60d7e19 getAnimation and RAF callback ID checks added 2013-11-04 00:04:19 +00:00
wKLV
8678373754 fix typo 2013-11-04 00:18:59 +01:00
wKLV
e8bac6c8c7 Check type uses the static values 2013-11-04 00:16:36 +01:00
KLV
4593a42a5b Mouse property to say what button is being clicked
It follows the convention that already was in the
file 0 for left, 1 for middle and 2 for right.
It also changes to -1 when mouseUp.
2013-11-03 23:43:47 +01:00
beeglebug
3227918c57 fix #154 Button now goes back to over state when setFrames used in action 2013-11-02 11:24:00 +00:00
Cameron Foale
a96ced0d82 Add a postUpdate function to plugins, which is called after World.postUpdate 2013-11-02 17:04:32 +11:00
photonstorm
cc42a71c66 Preparing 1.1.3 dev branch 2013-11-01 19:05:47 +00:00
photonstorm
3e9777e6f4 Updated docs for 1.1.2 release. 2013-11-01 18:16:52 +00:00
Richard Davey
eb95ce231b Merge pull request #159 from alvinsight/dev
Tidied up space invaders' code base
2013-11-01 11:13:55 -07:00
alvinsight
d0889fcc17 Tidied up the code base 2013-11-01 18:04:54 +00:00
photonstorm
160a321a36 Updated invaders demo. 2013-11-01 17:37:32 +00:00
photonstorm
685054eac5 Group.callAll now supports nested functions and a context, making it really powerful! 2013-11-01 17:29:57 +00:00
Richard Davey
19ac33f970 Merge pull request #158 from alvinsight/dev
Invaders game improved
2013-11-01 10:30:00 -07:00
alvinsight
56c7f1f275 Invaders game improved 2013-11-01 17:02:06 +00:00
Richard Davey
51a42c2f12 Merge pull request #155 from alvinsight/dev
Tilemaps examples updated
2013-11-01 07:50:54 -07:00
Webeled
e3f76ce481 Tilemaps examples updated 2013-11-01 12:25:14 +00:00
Richard Davey
bd752785b9 Merge pull request #150 from beeglebug/master
added getMagnitude, setMagnitude, normalize and isZero methods to Point
2013-11-01 04:37:54 -07:00
photonstorm
787abc1e02 Updated debug header and added more info to the project template. 2013-11-01 04:58:08 +00:00
photonstorm
581d637663 Added Group.cursor. This points to the first item added to a Group. You can move the cursor with Group.next() and Group.previous(). 2013-11-01 02:50:00 +00:00
photonstorm
3c164b466c * Updated: event.preventDefault() has been added to all Mouse event handlers.
* Updated: Sprite.deltaX/Y removed due to non-use. prevX/Y values moved to Sprite._cache.prevX/Y.
* Updated: Due to missing extends parameter the Sprite prototype was picking up functions from classes it never meant to (Button, TilemapLayer), now fully isolated.
2013-11-01 02:07:21 +00:00
photonstorm
01eab3aeb1 Fixed issue 141 - If a Sprite is dragged and you release the Pointer while not over the Sprite, it will think it's still over it (thanks Paratron) 2013-10-31 16:27:10 +00:00
photonstorm
6f93a2ec94 Multiple Anims update, Tilemap fixes and some new examples. 2013-10-31 15:45:19 +00:00
Stuart Lee
903c2e73fa added getMagnitude, setMagnitude, normalize and isZero methods to Point 2013-10-31 14:11:03 +00:00
photonstorm
712858cf75 More work on the Invaders game. 2013-10-31 05:31:54 +00:00
photonstorm
ddf15979d0 Fixing up Invaders and Star Struck. Also removing lots of un-used css jsdoc themes. 2013-10-31 01:45:16 +00:00
Richard Davey
ebf4456e4e Merge pull request #147 from beeglebug/scope
state callbacks now receive game object as argument
2013-10-30 18:44:35 -07:00
Stuart Lee
01f64c6694 state callbacks now receive game object as argument 2013-10-30 16:09:06 +00:00
Richard Davey
0a77690f4f Merge pull request #144 from beeglebug/dev
hexToRGB now accepts short hex codes (#EEE)
2013-10-30 07:16:41 -07:00
Stuart Lee
9030fbf352 hexToRGB now accepts short hex codes (#EEE) 2013-10-30 13:34:46 +00:00
photonstorm
24c809dd5f Final body / physics / bounds fixes. Also updated various examples, optimised Sprite core loop and enhanced the Invaders example. 2013-10-30 03:46:52 +00:00
photonstorm
3de62907a0 Nearly fixed the tilemap / body issue. More tests needed but then can push to master. 2013-10-29 04:07:26 +00:00
photonstorm
7ceb11ae49 New: You'll now find a complete Basic project Template in the resources/Project Templates folder. Will add more complex ones soon. 2013-10-28 23:29:34 +00:00
Richard Davey
2b40d2f507 Merge pull request #139 from beeglebug/master
Added init method to plugins, to be called as they are added to the PluginManager
2013-10-28 03:28:13 -07:00
photonstorm
a814cc26cc * Fixed issue 135 - Added typeof checks into most ArcadePhysics functions to avoid errors with zero values.
* Fixed issue 136 - distanceTo using worldX/Y instead of x/y.
2013-10-28 10:17:36 +00:00
photonstorm
ea651113df Preparing for 1.1.2 release. 2013-10-28 00:16:20 +00:00
beeglebug
f00c52598b added init method to plugins
this will allow potentially destructive code to run outside of the
constructor, and only if it has been added to the PluginManager
2013-10-27 22:30:01 +00:00
photonstorm
9261160571 1.1.1 release with fix for Phaser.AUTO and a new text example. 2013-10-26 19:14:13 +01:00
photonstorm
2787ed188e Preparing for 1.1.2 release 2013-10-26 12:17:22 +01:00
photonstorm
b6efdff286 Adding the key capture to addCursors. 2013-10-25 19:13:00 +01:00
photonstorm
6994e4be5e Merge branch 'dev' 2013-10-25 18:50:14 +01:00
photonstorm
bd5bca14fe Small url update. 2013-10-25 18:38:01 +01:00
photonstorm
34736fbde5 Final 1.1 release. Here goes nothing :) 2013-10-25 18:35:49 +01:00
Richard Davey
155c36b0fd Merge pull request #126 from alvinsight/dev
Second commit, all the basic examples added, and wip files moved
2013-10-25 10:13:55 -07:00
Webeled
8dfe5aee1c Second commit, all the basic examples added, and wip files moved 2013-10-25 18:10:03 +01:00
Richard Davey
3f9c07d783 Merge pull request #125 from alvinsight/dev
Basic examples created
2013-10-25 10:07:17 -07:00
Webeled
f63e8d7d06 Basic examples created 2013-10-25 18:00:25 +01:00