Richard Davey
940f242a2a
Merge pull request #533 from alvinsight/1.2
...
Updated the examples according to the latest changes
2014-03-10 12:17:49 +00:00
Georgios Kaleadis
95e2081f3a
more p2 fixes
2014-03-10 13:17:37 +01:00
Georgios Kaleadis
c611d51751
minimal runable new p2 integration
2014-03-10 13:15:05 +01:00
alvinsight
1d897753c8
Added the new gravity scale
2014-03-10 11:45:35 +00:00
alvinsight
d09da54dd3
Updated the arcade physics examples according to the lastest changes
2014-03-10 11:37:46 +00:00
Richard Davey
fab8cf02fd
Merge pull request #532 from videlais/1.2
...
Update LoaderParser.js (remove navigator.isCocoonJS)
2014-03-10 11:17:22 +00:00
photonstorm
982823d875
Updated TypeScript defs which now compiles against 1.2 (but still missing quite a few areas).
...
New build files that match them.
2014-03-10 11:08:07 +00:00
Dan Cox
806b8eb82a
Update LoaderParser.js
...
Remove "navigator.isCocoonJS" here as CocoonJS has neither window.DOMParser nor will a createElement('div') work under Accelerated Canvas/WebGL mode. (Under WebView mode, there will probably be a DOMParser object. Most have it.)
2014-03-10 02:59:32 -04:00
photonstorm
8fff38618d
Tidied up the Examples, fixed Arcade Physics Body, added Body enable support to Group and fixed QuadTree.
2014-03-10 03:06:28 +00:00
photonstorm
c4183d200f
Changed the define function calls to use named modules, allows pixi, phaser and p2 to reside in 1 file and still be located by requirejs (thanks brejep, #531 )
2014-03-10 01:39:36 +00:00
photonstorm
051526bedd
Updated Pixi and P2.
2014-03-10 01:13:57 +00:00
photonstorm
45ab4673cc
ScaleManager.fullScreenTarget allows you to change the DOM element that the fullscreen API is called on (feature request #526 )
2014-03-10 01:13:01 +00:00
photonstorm
c73b4eaea0
json is now the default tilemap format when not defined (thanks RyanDansie, #528 )
...
Updated docstrap
2014-03-10 00:50:06 +00:00
photonstorm
ab6a9aab41
Fresh builds for the weekend.
2014-03-07 15:17:13 +00:00
photonstorm
4db1fc0079
Restored Phaser.QuadTree - should get all remaining Arcade Physics examples working again.
2014-03-07 15:14:53 +00:00
photonstorm
480c1819d6
Working through AABB vs. AABB tests.
2014-03-07 05:30:56 +00:00
photonstorm
4cac6408d8
Ninja.AABB updated with all the correct properties, now works fully as with Circle. Created new tests, all Ninja shapes now set Body.touching values correctly. TileSprites work as bodies. Trying out AABB vs. AABB collision now.
2014-03-07 04:43:55 +00:00
photonstorm
f22af81653
TileSprites now have a physics body property and call it in the pre and post updates. As with all physics bodies it's null by default.
2014-03-07 03:23:32 +00:00
photonstorm
1c68ff9042
Tilemap.createFromObjects allows you to specify you own object type to be created if you want a class that extends Phaser.Sprite.
2014-03-07 03:19:07 +00:00
photonstorm
a51ae03246
Tweens are now bound to their own TweenManager, not always the global game one. So you can create your own managers now (for you clark :)
2014-03-07 01:26:09 +00:00
photonstorm
3b2573de9a
Objects that are 'fixedToCamera' are now still correctly placed even if the camera is scaled ( #512 )
2014-03-06 17:12:12 +00:00
Richard Davey
a6b05f4d02
Merge pull request #519 from clark-stevenson/patch-1
...
Phaser.Image extends PIXI.Sprite
2014-03-06 16:57:38 +00:00
photonstorm
7db8e5bc5e
Fixed typo in README (thanks prtksxna, #518 )
2014-03-06 16:56:25 +00:00
photonstorm
d75f6e163f
Updated tilemap type to string ( fixes #516 )
2014-03-06 16:53:52 +00:00
photonstorm
081c083176
InputHandler.enableSnap now correctly assigns the snap offset parameters ( fixes #515 )
2014-03-06 16:45:29 +00:00
clark-stevenson
83091b7647
Phaser.Image extends PIXI.Sprite
2014-03-06 11:44:26 +00:00
photonstorm
512b542e50
Fixed gruntfile and included new labs demo.
2014-03-06 10:01:46 +00:00
photonstorm
6815c5909a
New tiles and new map test.
2014-03-06 09:48:42 +00:00
photonstorm
e97a207816
Added in Circle to the Ninja physics system.
2014-03-06 07:18:59 +00:00
photonstorm
3e93f24583
New split physics system is implemented. Still tidying-up, but ArcadePhysics, P2 and Ninja Physics are in and configured. Lots more examples required, and tilemap collision mostly broken in Arcade at the moment. Time to implement in Ninja.
2014-03-06 06:29:19 +00:00
photonstorm
2bab4fd2fb
Testing lines.
2014-03-05 04:40:37 +00:00
photonstorm
12a2a2ec16
Testing map collision
2014-03-05 03:18:24 +00:00
photonstorm
22b1ce9b9d
Added Phasers new Physics Manager and restored the pre-1.1.4 ArcadePhysics system. The new manager can handle multiple physics systems running in parallel, which could be extremely useful for lots of games.
2014-03-05 02:36:08 +00:00
photonstorm
cc82336952
Adding in TweenGroup for wip dev.
2014-03-04 03:31:20 +00:00
photonstorm
5a6ae5f696
Tilemap.putTile now correctly re-calculates the collision data based on the new collideIndexes array ( fixes #371 )
...
Tilemap.putTile can now insert a tile into a null/blank area of the map (before it could only replace existing tiles)
2014-03-04 03:08:35 +00:00
Richard Davey
b5df53b4f6
Merge pull request #507 from clark-stevenson/patch-1
...
PIXI + Phaser Definitions
2014-03-04 02:05:45 +00:00
photonstorm
f9cad58082
Labs code updates.
2014-03-04 01:40:02 +00:00
photonstorm
a30c2c87a9
New build files.
2014-03-04 01:29:04 +00:00
photonstorm
8c2502d37d
Group.xy(index, x, y) allows you to set the x and y coordinates of a Group child at the given index.
...
Group.reverse() reverses the display order of all children in the Group.
New labs demo.
Fixed some Easing docs issues.
2014-03-04 01:27:57 +00:00
clark-stevenson
700d8d5258
PIXI + Phaser Definitions
...
Thanks to @natelong for Maintaining the original PIXI definitions.
Updated to 1.5.2 PIXI.
Needs testing. May be missing updates from the dev branch of Phaser 1.2 that occurred in the last few days.
Warning! I made Phaser.point extend PIXI.Point. It was the only way I could get this to work.
If class property position is PIXI.Point
And you try to overlay position with Phaser.Point
I get "X cannot extend Y type mismatch" for a whole bunch of classes. Only when I extend PIXI.Point does the errors dissapear.
Also was not sure to include PIXI in this file or a separate one.
2014-03-03 23:46:24 +00:00
photonstorm
67ad898294
Tween.generateData(frameRate) allows you to generate tween data into an array, which can then be used however you wish (see new examples)
...
Added new Retro Font examples.
2014-03-03 22:43:35 +00:00
photonstorm
7183322259
Renamed Phaser.BitmapFont to Phaser.RetroFont because I believe it will cause confusion otherwise. Also tidied up the asset fonts folder.
2014-03-03 17:05:28 +00:00
photonstorm
6cc09fce67
Updated Pixi to fix roundToPixel error.
2014-03-03 16:13:50 +00:00
photonstorm
833960b3c8
Animation.looped has been renamed to Animation.loop. It's a boolean you can toggle at run-time to turn on/off animation looping.
...
A single Animation object now has 3 new events: onStart, onLoop and onComplete.
Animation.loopCount holds the number of times the animation has looped since it last started.
Animation.stop has a new parameter: dispatchComplete. If true it'll dispatch an Animation.onComplete event.
2014-03-03 16:05:55 +00:00
photonstorm
4a370c82cf
You can now load in CSV Tilemaps again and they get created properly ( fixes #391 )
...
You can now create blank Tilemaps and then populate them with data later.
2014-03-03 13:45:47 +00:00
photonstorm
960e8cace6
Updated blank tilemap example with painting tool.
2014-03-03 11:40:40 +00:00
photonstorm
502d74ee39
Keyboard.event now stores the most recent DOM keyboard event.
2014-03-03 11:18:56 +00:00
photonstorm
d8f5832fa2
Completely empty Tilemaps can now be created. This allows for dynamic map generation at runtime.
...
Loads of updates across most the Tilemap files. Not finished yet, still CSV loading to do and a multi-tileset issue to resolve, but it's a lot more flexible now.
2014-03-03 05:19:46 +00:00
photonstorm
6f513042c1
Tween no longer copies all the object properties into the _valuesStart
object on creation.
...
Fixed shadow bug in Debug.text
Fixed tween examples.
2014-03-03 02:40:59 +00:00
photonstorm
76040d303e
Added in the Gestures support contribution for testing.
2014-03-03 01:42:11 +00:00