photonstorm
953ae83350
Updated TS defs ( fix #650 )
2014-03-26 13:24:11 +00:00
photonstorm
75cc6a7365
Added World.setBounds to the TypeScript defs ( fix #649 )
2014-03-26 11:00:15 +00:00
keyle
163d8fa964
Fixed typo in typescript defs
2014-03-26 19:05:36 +10:00
clark-stevenson
daaa99216f
Few updates
2014-03-21 23:59:44 +00:00
clark-stevenson
1f37a4e1f5
Update phaser.d.ts
...
Final one, I went through the source code this time so I know its 99% matching your latest commit brining it upto par with 2 completely.
Congratulations on reaching 2! Phaser is amazing, and without the well documented code, I would be stumped.
2014-03-20 11:07:37 +00: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
clark-stevenson
7ab37a82f4
Update phaser.d.ts
...
SAT removed
Physics modules should all be updated correctly #599
Misc updates from the last week of dev.
So the TS is upto date and it should be easy to maintain with the latest changes.
The only thing that bothers me is the historic references to <2.0 and the pre-pixi "any". That kind of thing will be my next update.
My final questions though are these!
1) displayObject: any can this now be considered PIXI.DisplayObject or should I keep "any"?
2) When an argument can either be a string or a number. Are you stuck with "any" or is there a concept I am missing in TypeScript? It is the same with stuff like "p2.Constraint". In this situation, is it wise to create an IConstraint which all constraints implement, rather than having "any" or is that just even more confusing?
I would like my next pass through to be as acceptable as possible.
2014-03-19 15:09:44 +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
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
photonstorm
50eee95c99
Improved TilemapLayer rendering and debug rendering significantly. Cleared out some old assets and added a new map.
2013-12-18 00:44:04 +00:00
photonstorm
19759699df
More TypeScript definitions fixes (for Easing and Animation data).
2013-12-10 14:34:22 +00:00
photonstorm
669570c701
Tidying up the examples and more Tilemap work.
2013-12-10 12:23:42 +00:00
photonstorm
13a03f3620
TypeScript file updated, now compiles without error in VS and FlashDevelop.
2013-12-06 13:48:40 +00:00
photonstorm
a9a46bfbbf
Lots of documentation updates and new Loader examples.
2013-11-27 16:33:49 +00:00
Richard Davey
373b97648d
Documentation updates
2013-11-24 23:52:31 +00:00
Louis Tovar
0dab85c853
latest version of typescript definitions, manual changes to get it to code hint properly.
2013-11-15 13:50:16 -08:00
Louis Tovar
f71b8d4df1
Manual fixes for TypeScript definitions file. Not Complete, more to come
2013-11-13 01:24:26 -08:00
photonstorm
8b793cd8d7
Updated to latest version of Pixi.js. Lovely new WebGL filters now working happily :)
2013-11-06 04:51:23 +00:00
Tomas Morris
d30f709208
Manually created a more accurate TypeScript definition file
2013-10-24 21:24:35 -06:00
photonstorm
4a51ac4671
Updated README and sorting out folder case issue.
2013-10-23 13:30:23 +01:00
Richard Davey
1248a6c06e
Whole codebase updated to TypeScript 0.9.1, phew!
2013-08-08 19:16:47 +01:00
Richard Davey
73745e5720
Fixed a few things in Tilemap and optimised the renderer a little bit.
2013-08-08 06:29:21 +01:00
Richard Davey
ab7e55ef27
Added ability for the TimeManager to monitor the pause duration. This is then applied to tweens and other game services, meaning the tweens now restart properly after a pause resumes.
2013-08-08 05:43:22 +01:00
Richard Davey
5768336150
Tidied up the Loader so it now starts automatically, added required Signals and removed the old-style callbacks.
2013-08-08 04:35:13 +01:00
Richard Davey
04dcb29c88
WorldView now takes camera placement into account, so Buttons now work across multiple camera set-ups.
2013-08-08 03:24:26 +01:00
Richard Davey
a174bbc6b3
Vastly optimised InputManager and Pointer is now aware of which camera it is over.
2013-08-08 03:05:59 +01:00
Richard Davey
bc77c3f84e
Updated Renderer system, now much easier to expand and maintain.
2013-08-08 01:07:22 +01:00
Richard Davey
d7205992a5
Fixed some issues in dragging sprites with snap-to-center and world coordinates.
2013-08-07 00:00:12 +01:00
Richard Davey
77cc3858d9
Fixed the world drag issue across Sprite and Button.
2013-08-06 04:34:52 +01:00
Richard Davey
11954812c6
Clearing down the To Do list.
2013-08-06 03:14:48 +01:00
Richard Davey
f3dcd3e831
Plugin Support added and CameraFX re-enabled
2013-08-02 19:37:43 +01:00
Richard Davey
982faeedb8
Updating and fixing tests
2013-08-02 18:32:26 +01:00
Richard Davey
4c9c50584e
Tidying up the physics libraries
2013-08-02 12:38:56 +01:00
Richard Davey
955909979d
Preparing for 1.0 branch
2013-08-01 22:21:29 +01:00
Richard Davey
a5343b4bc0
Quick commit before I merge the new tests
2013-07-19 16:53:47 +01:00
Richard Davey
3c123293ba
New CSS3 Filters component and Net class.
2013-07-19 04:57:14 +01:00
Richard Davey
9827e7522f
Multiple fixes to remove the use of reserved words, making the YUI compressor work again.
2013-07-19 02:59:23 +01:00
Richard Davey
a2c756e37f
Added ability for full Audio tag playback and iOS touch lock load support.
2013-07-16 23:32:47 +01:00
Richard Davey
72eb22128f
SoundManager overhaul nearly finished. Proper Web Audio / Audio tag split, working across desktop and mobile. Includes iOS touch unlock restriction handling, auto decoding, global volume management, audio sprite support (for both web audio and audio tags) and playhead monitoring.
2013-07-16 14:45:08 +01:00
Richard Davey
b3fff37faf
Added todo items to repo
2013-07-13 12:38:59 +01:00
Richard Davey
dcce99ec60
Added the new Button game object and various other input and tilemap fixes.
2013-07-12 03:28:46 +01:00
Richard Davey
c81cf0c882
Lots of Tilemap updates, moved the renderer out, added components and new tests.
2013-07-02 23:41:25 +01:00
Richard Davey
c647792c12
Physics updates
2013-06-26 14:18:48 +01:00
Richard Davey
d19ad4976d
Merged Advanced Physics with core.
2013-06-26 05:44:56 +01:00
Richard Davey
0591c7f2bd
Doing one final commit before the task of merging physics with core.
2013-06-25 15:35:45 +01:00
Richard Davey
ec845155eb
After hours and hours of debugging, polygon to polygon collision is now working perfectly :)
2013-06-21 23:39:29 +01:00
Richard Davey
829a1b00e4
Brand new physics system finally (mostly) working. Some poly issues to resolve, but it's running well.
2013-06-18 19:37:09 +01:00
Richard Davey
0a7513240a
Refactor completed. Now to tie the physics and sprites together.
2013-06-14 18:54:12 +01:00
Richard Davey
533a4c2e30
Commiting before a small refactor of Shapes and Joints
2013-06-14 17:55:07 +01:00
Richard Davey
dd8962d4b5
After a mammoth debugging session we now have advanced physics colliding and responding accurately :)
2013-06-14 15:18:41 +01:00
Richard Davey
114d1d2fbf
Compiling, but not yet running correctly. Need to add body renderer next.
2013-06-14 04:13:00 +01:00
Richard Davey
232c96cc54
Space and Joints interface added.
2013-06-14 03:20:47 +01:00
Richard Davey
461f7ee54d
Added lots more classes into the Advanced Physics package
2013-06-14 02:42:51 +01:00
Richard Davey
038cb213e8
Starting merge of the Advanced Physics classes and splitting off Flixel physics into ArcadePhysics.
2013-06-13 17:15:16 +01:00
Richard Davey
7dac2b6506
Added Group.bringToTop and updated Input component to use sprite getXY handler.
2013-06-13 01:55:32 +01:00
Richard Davey
2389c6c231
Added ability to detect if a given point is within a sprite or not, taking rotation and scaling into account.
2013-06-12 19:53:48 +01:00
Richard Davey
c2533d1146
Finally a fully working bounding box that respects scale and rotation - the "in camera" check is now 100% accurate :)
2013-06-11 23:30:35 +01:00
Richard Davey
c5f6817c4c
Working sprite bounds / vertices regardless of scale or rotation
2013-06-11 21:30:15 +01:00
Richard Davey
1f8c809f53
cameraView working for center rotated sprites, just need to handle any point of rotation.
2013-06-07 19:18:39 +01:00
Richard Davey
3b9386727e
Small refactoring and massively optimised the canvas renderer, also added new Mat3 class.
2013-06-07 16:27:33 +01:00
Richard Davey
a30762ed8c
Fixed world drag support and other input modifications.
2013-06-07 07:35:28 +01:00
Richard Davey
730594835a
New Texture and Transform components which are now used by Sprite, Group and Camera.
2013-06-06 02:47:08 +01:00
Richard Davey
2f03f5fc43
Updated Loader component and fixed a few Pointer issues.
2013-06-05 02:58:16 +01:00
Richard Davey
d42f396ba0
Lots of tweaks and fixes to the orientation and fullscreen classes
2013-06-05 01:49:08 +01:00
Richard Davey
82d4ba4538
Re-done the pointer handler so it respects the top-most rendered sprite in priority to anything below it, for both mouse over and click events.
2013-06-03 12:03:34 +01:00
Richard Davey
1c37cd1a96
Created DebugUtils class and started moving renderInfo methods to it.
2013-06-03 03:08:24 +01:00
Richard Davey
2de70d07a5
Fixed issue in Camera.inCamera check where it wouldn't take into consideration the Sprites scrollFactor.
2013-06-03 02:38:08 +01:00
Richard Davey
b951b02de8
Input priority IDs working properly for drag events.
2013-06-03 01:22:14 +01:00
Richard Davey
f9f17ad353
Multi point input handler working
2013-06-02 14:19:12 +01:00
Richard Davey
49fe5ee65f
Added Group IDs and references to Sprites, Group sorting, z-index values and child swapping. Also added all of the drag and bounds methods to Input.
2013-06-02 03:47:54 +01:00
Richard Davey
5b532ab2e4
Sprite.Input component added and working nicely.
2013-06-01 02:49:41 +01:00
Richard Davey
b20a6ff85a
Working my way through putting all the Tests back in and fixing issues as I go.
2013-06-01 01:30:36 +01:00
Richard Davey
31c4d8cb14
Adding in missing tests and fixing as we go
2013-05-31 19:28:16 +01:00
Richard Davey
d510b785b1
Putting everything back together again :)
2013-05-31 18:21:32 +01:00
Richard Davey
23ec3816db
Added circleToRect intersection check.
2013-05-31 05:28:36 +01:00
Richard Davey
39e7b84cd9
Flixel level separation merged with the new Physics shapes.
2013-05-31 04:20:49 +01:00
Richard Davey
3e53c0671d
About to start re-doing collideShapes
2013-05-30 23:03:56 +01:00
Richard Davey
498725c078
Moved the collision out into separateX and separateY
2013-05-30 13:25:48 +01:00
Richard Davey
ce1523585f
ScrollZone back in under the new renderer with new demos
2013-05-30 05:34:35 +01:00
Richard Davey
f2054f8a2a
Physics shape offset now finally working
2013-05-30 03:54:51 +01:00
Richard Davey
0fad46e04b
Merged updateMotion with new PhysicsManager
2013-05-30 01:09:27 +01:00
Richard Davey
c1eafe865a
First pass at integrating the new physics system.
2013-05-29 21:39:08 +01:00
Richard Davey
7b4374cabf
Added loop and yoyo properties to Tweens
2013-05-29 15:45:34 +01:00
Richard Davey
b1d836dfaf
Scale tweaks
2013-05-29 12:24:25 +01:00
Richard Davey
2a26257caa
Fixed scale, flippedX/Y and rotation so they all work from a single setTransform in any combination, taking the origin into account. Phew!
2013-05-29 11:40:05 +01:00
Richard Davey
09f57fa346
Preparing new tests
2013-05-29 02:58:56 +01:00
Richard Davey
204ec46b2b
Refactoring ready for 1.0 release.
2013-05-25 04:21:24 +01:00
Richard Davey
94add2ea6e
Updated Loader so it no longer checks if the animation data is valid, passes that control to the AnimationLoader. Also fixed camera bounds check in Sprite.
2013-05-23 15:45:04 +01:00
Richard Davey
c7485301ca
Added Starling/Sparrow XML Texture Atlas format support.
2013-05-23 03:08:57 +01:00
Richard Davey
bd54460e80
Added the GameObjectManager
2013-05-23 00:01:58 +01:00
Richard Davey
e2141c91a6
Added VerletManager and lots of new tests
2013-05-21 04:12:54 +01:00
Richard Davey
0b2d818ba8
CollisionMask up and running
2013-05-20 06:21:12 +01:00
Richard Davey
05cc32fbc9
Added final logo and start of CollisionMask
2013-05-19 14:01:11 +01:00
Richard Davey
53aa43566e
Updated DynamicTexture.setPixel, added GameMath.shuffleArray, fixed Animation.frame and created a few new tests
2013-05-18 03:05:28 +01:00
Richard Davey
55568592b5
Lots of updates across input, rendering and grouping
2013-05-17 06:49:43 +01:00
Richard Davey
a6e8436e6d
Massive input overhaul continued
2013-05-16 21:34:24 +01:00
Richard Davey
3cdd2baff0
New Input handler implemented.
2013-05-16 02:36:58 +01:00
Richard Davey
ce7bfd1fc2
Added FullScreen API support and fixed numerous StageScaleMode issues.
2013-05-14 03:37:38 +01:00
Richard Davey
54a5e6477c
Lots of new tile map commands and tests.
2013-05-02 05:01:34 +01:00
Richard Davey
2a5b6ef12a
Large Tilemap collision overhaul. Proper callback support, optimised collision checks and lots more.
2013-05-02 03:37:45 +01:00
Richard Davey
e62b300a25
Added Camera Mirror FX and test case.
2013-05-02 01:02:06 +01:00
Richard Davey
7d98a1bb9d
New FXManager system and Camera FX now in place.
2013-05-01 04:10:21 +01:00