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
clark-stevenson
868f128978
Basic p2 added
...
Will maybe be sketchy (a few Any's - p2.Shape or p2.Constraint etc). Also I may have messed up a couple of types (Phaser.Physics.p2.Body vs p2.Body).
Also fixed #585
2014-03-17 12:35:14 +00:00
clark-stevenson
1152fe6ee2
Ninja Physics Added
2014-03-16 15:21:22 +00:00
qdrj
33215dce6c
fixed lots of "nummber" typos
2014-03-12 14:48:49 +04:00
qdrj
0c3ad8acf4
tiny fix
2014-03-12 13:49:18 +04:00
qdrj
709c4a8111
fix Phaser.Utils.Debug definitions
2014-03-12 13:10:42 +04:00
photonstorm
6ef9e30753
Added z property to remaining game objects and updated TypeScript defs.
2014-03-10 23:16:49 +00:00
clark-stevenson
c2a71cc01c
Reviewed for 10/03/2014
...
This includes the latest changes made to Phaser.d.ts today. (Body)
I am pretty lost in the whole Physics Body definitions stuff so generally only do limited edits there.
2014-03-10 16:58:12 +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
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
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
d75f6e163f
Updated tilemap type to string ( fixes #516 )
2014-03-06 16:53:52 +00:00
clark-stevenson
83091b7647
Phaser.Image extends PIXI.Sprite
2014-03-06 11:44:26 +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
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
1aea08d0f7
AnimationParser.spriteSheet wasn't taking the margin or spacing into account when calculating the numbers of sprites per row/column, nor was it allowing for extra power-of-two padding at the end ( fix #482 , thanks yig)
...
AnimationManager.add documentation said that 'frames' could be null, but the code couldn't handle this so it defaults to an empty array if none given (thanks yig)
Also updated TypeScript definitions and StateManager.add docs.
2014-02-26 01:32:38 +00:00
photonstorm
6f835d7696
Added Tileset to TypeScript defs.
2014-02-10 02:42:28 +00:00
clark-stevenson
e9ab2d30b6
Update phaser.d.ts
...
Sprite was missing height property
2014-02-09 17:00:07 +00:00
clark-stevenson
27bca6a8c2
Update phaser.d.ts
...
atlasJSONArray, atlasJSONHash should have optional parameters when it comes to URL/Object? Please disregard this if this is incorrect.
2014-02-09 16:15:10 +00:00
photonstorm
e11cae5373
Added the SAT class to the TypeScript defs file. Also this fixes #369 .
2014-02-07 02:50:36 +00:00
photonstorm
9e5e30bb12
Fixed TypeScript defs on lines 1741-1748 (thanks wombatbuddy)
2014-02-06 19:36:33 +00:00
photonstorm
8e77e8cedb
Lots of TypeScript defs updates for the new Physics / Body classes.
2014-02-05 16:54:58 +00:00
Richard Davey
4502ca1bf6
Merge pull request #359 from qdrj/patch-7
...
Update phaser.d.ts
2014-02-05 12:33:30 +00:00
qdrj
a1ccddcd7e
Update phaser.d.ts
...
Added BitmapText definitions
2014-02-05 01:19:04 -08:00
qdrj
82c39d0866
Update phaser.d.ts
...
It is a bit confusing that AnimationManager.getAnimation can return animation object or false. Maybe it will better if this method will be returning null instead of false.
2014-02-04 23:24:28 -08:00
qdrj
09d4b2bb8b
Update phaser.d.ts
2014-02-04 01:32:06 -08:00
Richard Davey
33d47cf9e9
Merge pull request #344 from qdrj/patch-1
...
Update phaser.d.ts
2014-01-31 10:28:21 -08:00
qdrj
30af712d6a
Update phaser.d.ts
...
Fix typo StageScaleMode.pageAlignVeritcally
2014-01-31 07:32:17 -08:00
qdrj
e5dc16b68d
Update phaser.d.ts
...
Fix incorrect Loader.checkKeyExists declaration
2014-01-31 04:53:19 -08:00
qdrj
e5f52e8ae8
Update phaser.d.ts
...
GameObjectFactory.add.existing should return added object
2014-01-27 23:57:28 -08:00
Richard Davey
4432d37e6e
Merge pull request #312 from miguelangelgonzalez/dev
...
Added missing Typescript definitions
2014-01-27 07:40:45 -08:00
Richard Davey
511858e3f5
Merge pull request #340 from qdrj/patch-2
...
Update phaser.d.ts
2014-01-27 07:40:25 -08:00
Richard Davey
d37ec40d72
Merge pull request #339 from qdrj/patch-1
...
Update phaser.d.ts
2014-01-27 07:39:54 -08:00
qdrj
3fb2eb23cd
Update phaser.d.ts
...
Incorrect TilemapLayer constructor
2014-01-24 01:13:09 -08:00
qdrj
8b06f9cd86
Update phaser.d.ts
...
Remove duplicated Timer.create signature
2014-01-23 22:50:02 -08:00
hstolte
971e17fabe
removed duplicate line in Timer class
...
The method create(...) was defined twice (line 1357 and line 1360). I removed line 1360.
2014-01-18 22:34:28 +01:00
Richard Davey
2532df8793
Merge pull request #317 from gareththegeek/patch-3
...
Allow Text.style to be any type
2014-01-16 07:28:37 -08:00
Richard Davey
c5840f4f6f
Merge pull request #316 from gareththegeek/patch-2
...
Add missing addKey method to Keyboard
2014-01-16 07:28:17 -08:00
gareththegeek
47ee5a2c88
Allow Text.style to be any type
...
To allow a configuration object to be used rather than a string
2014-01-16 14:48:13 +00:00
gareththegeek
ca1f24868a
Add missing addKey method to Keyboard
2014-01-16 14:46:12 +00:00
gareththegeek
1f9df6e3f4
Fix typescript compile error in 0.9.5
...
Explicitly specify type for parameters array
2014-01-16 14:43:28 +00:00
Miguel Angel Gonzalez
ac310ab881
Added missing Typescript definitions
2014-01-15 12:15:59 -03:00
photonstorm
c6fa2cb7b6
Added the new Timer, TimerEvent and Time methods to the TypeScript definitions files.
2014-01-13 14:18:15 +00:00
Tarion
c21365703d
Phaser Definitions Update
...
Added "GetCurrentState" to StateManager
2014-01-08 22:57:13 +01:00
niondir
1aabb6b93d
World is a Group. Needed to remove stuff again e.g. a "BitmapText"
2014-01-07 19:54:04 +01:00
niondir
77a8dc321f
phaser.d.ts corrections
2014-01-07 10:58:00 +01:00
photonstorm
ce4cf531d4
Added class constructors, fixed Stripshader, added relative Tween example and updated Tween source.
2013-12-30 16:54:00 +00:00
inductible.dev
9a968bc5bb
TypeScript defs: TileSprite now extends Sprite, and added 'fixedToCamera' property to Sprite definition
2013-12-23 09:48:07 +00:00
inductible.dev
6be31e0f69
added TypeScript definitions for Key and CursorKeys object
2013-12-22 13:34:52 +00:00
photonstorm
5cf7ed4fdb
More TypeScript updates.
2013-12-18 16:56:14 +00:00