Commit graph

7407 commits

Author SHA1 Message Date
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
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
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
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
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
65d2bf557b Updated docs and more tidying up. 2013-10-25 17:30:37 +01:00
photonstorm
9f9e6a2a57 Lots of doc updates! 2013-10-25 16:54:40 +01:00
Richard Davey
0463bb4333 Merge pull request #124 from alvinsight/dev
A lot of documentation updates
2013-10-25 07:51:38 -07:00
Webeled
12148b3159 More improvements on GameObjectFactory 2013-10-25 15:42:48 +01:00
Webeled
ce04ade458 Lots of JSDocs updates in the gameobjects folder 2013-10-25 15:22:45 +01:00
photonstorm
a08436abc3 Final Sprite documentation added. 2013-10-25 15:02:21 +01:00
Webeled
35517d94ad Just to test if smartGit works again 2013-10-25 14:31:25 +01:00
photonstorm
d8a2b9d2af Removed console.log 2013-10-25 05:43:10 +01:00
photonstorm
2921a6de2e Pixel Perfect click detection now works even if the Sprite is part of a texture atlas. 2013-10-25 05:40:46 +01:00
photonstorm
1294b3a2b9 Input over now works regardless of rotation, anchor or scale. 2013-10-25 03:57:08 +01:00
photonstorm
427819c655 Sprite bounds finally correct, regardless of rotation, parenting, scale or anchor. 2013-10-25 03:50:15 +01:00
photonstorm
1469663ea5 Button fixes and Input coordinate fixes. 2013-10-25 02:19:16 +01:00
photonstorm
1f28d328a7 Commit before refactoring Sprite guts. 2013-10-24 21:21:00 +01:00
photonstorm
a6fac64248 Loads of issues reported on Github resolved (sprite crop, music resume, etc). 2013-10-24 04:27:28 +01:00
Richard Davey
e4621aafdd Merge pull request #115 from ooflorent/grunt-build
Build phaser using Grunt
2013-10-23 09:11:51 -07:00
photonstorm
7e5f38d022 Phaser.Time physicsElapsed delta timer clamp added. Stops rogue iOS / slow mobile timer errors causing crazy high deltas. 2013-10-23 17:11:06 +01:00
Florent Cailhol
dfee9f9b2f Add new Grunt build 2013-10-23 16:58:48 +02:00
photonstorm
94c7c57e1c Fixed WebGL detection and code colour on Firefox. 2013-10-23 15:13:21 +01:00
photonstorm
4a51ac4671 Updated README and sorting out folder case issue. 2013-10-23 13:30:23 +01:00
photonstorm
8ed783802e New examples page 2013-10-18 15:12:32 +01:00
photonstorm
7e8b79adf4 Tilemap painting example and other smaller updates. 2013-10-17 21:10:00 +01:00
photonstorm
275fa4641e Added Text.destroy and BitmapText.destroy. 2013-10-17 15:40:44 +01:00
photonstorm
4b2ac6c6c6 More tilemap examples 2013-10-16 21:25:51 +01:00
photonstorm
9c1fdb371c Nearly finished Tilemap integration into the core. 2013-10-16 06:33:39 +01:00
photonstorm
31018b9295 Star Struck game back and working again, plus finished the level design. 2013-10-16 03:37:15 +01:00
photonstorm
a97f271de7 Fixed Animation index 0 issue and hooked TilemapLayer to camera. 2013-10-16 02:09:12 +01:00
photonstorm
fd5eeb9088 Fixed Rectangle intersection issue and tilemap collision is working again. Win! 2013-10-15 15:24:07 +01:00
photonstorm
f3ea68aad3 Extracting the correct area from a layer, debug displaying it and preparing for collision. 2013-10-15 05:41:42 +01:00
photonstorm
dd695e066f More tilemap tweaks. 2013-10-14 19:37:52 +01:00
photonstorm
c6bf67c392 Group.alpha exposed and instance returns added to Loader functions. 2013-10-13 20:28:06 +01:00
photonstorm
e98aa205ea Sprite.destroy is back in business. 2013-10-13 01:29:57 +01:00
photonstorm
574f4f351b Github Issue #101 fixed. Plus more Tilemap updates. 2013-10-11 20:02:12 +01:00
photonstorm
0201baef11 And Tilemaps are rendering again - and much better than ever before :) Just one final optimisation pass to do and then it's on to collision. 2013-10-11 18:18:27 +01:00
photonstorm
cf414394c3 Tileset working, map coming next. 2013-10-11 06:30:28 +01:00
photonstorm
b868c2cb1b Started revamp of the Tilemap system. Also removed old 'Advanced Physics' and dropped in p2.js which is what I hope we'll eventually use. 2013-10-11 04:42:11 +01:00
photonstorm
a7230aa769 Sprite.loadTexture added. 2013-10-10 09:03:38 +01:00
photonstorm
f10f9324ad Animation.killOnComplete added and fixed a few issues in the Tanks game. 2013-10-09 13:36:57 +01:00
photonstorm
29acf7fb4b Enemy tanks, now firing. 2013-10-09 07:11:36 +01:00
photonstorm
ca9321ef42 Updated physics body to use localTransform. Updated tanks demo. 2013-10-09 05:13:38 +01:00
photonstorm
83a00862be Lots of new examples and updates. 2013-10-09 04:31:08 +01:00
Richard Davey
1c577d3674 Fixed RandomDataGenerator.sow 2013-10-08 22:55:27 +01:00
photonstorm
f5584bdfe5 Lots of fixes and updates to ArcadePhysics and Group, plus more examples. 2013-10-08 21:09:46 +01:00
photonstorm
ebc4e5dc3d New examples HTML page added. 2013-10-08 12:52:20 +01:00
photonstorm
fa692653e3 Final commit before rebuilding the Tilemap system. 2013-10-08 10:52:15 +01:00
photonstorm
c307f79102 Added Sprite.fixedToCamera, fixed Angular Velocity and Acceleration, fixed jittery Camera, added skipQuadTree flag and created lots more examples. 2013-10-08 00:58:20 +01:00
photonstorm
1bc6ac25fa Preparing to merge new examples. 2013-10-07 22:15:28 +01:00
Richard Davey
d4149a8f9a Setting up for this weeks work. 2013-10-07 22:15:28 +01:00
Richard Davey
664c512a99 Fixed small typo. 2013-10-06 16:27:39 +01:00
Richard Davey
47e1b1b54b Sprite optimisations. 2013-10-04 19:00:55 +01:00
Richard Davey
455b18b7ec Sprite optimisations :) 2013-10-04 18:09:56 +01:00
Richard Davey
c00bf96603 World and Camera updates nearly complete. 2013-10-04 16:51:24 +01:00
Richard Davey
e8bed83ac3 Making some major changes to Camera and World. 2013-10-04 14:41:15 +01:00
Richard Davey
54f073e5cb Testing some new Camera tricks. 2013-10-03 23:20:24 +01:00
Richard Davey
c8760b4341 Docs update. 2013-10-03 04:17:44 +01:00
Richard Davey
96da57cac0 Fixed up the namespace in the documentation and finished off all sections other than Game Objects and Physics (yuck). 2013-10-03 02:38:35 +01:00
Richard Davey
f832bacfd6 More Docs! 2013-10-03 01:21:08 +01:00
Richard Davey
e85643abf4 Yet more documentation done. 2013-10-02 20:18:24 +01:00
Richard Davey
868ae81bab Input, Loader and Math docs tidied up. 2013-10-02 15:05:55 +01:00
Richard Davey
1a2dc05609 Input and keyboard docs. 2013-10-02 13:18:58 +01:00
Richard Davey
852e82d0ca More docs. 2013-10-02 12:11:22 +01:00
Richard Davey
2a01fbb0e8 Merge pull request #87 from STuFF/patch-1
fix typo
2013-10-02 03:23:53 -07:00
Richard Davey
6ce6330f50 More docs. 2013-10-02 11:22:48 +01:00
Nicolas Challeil
d2bd2e1600 fix typo
small contribution is small :)
2013-10-02 09:46:42 +02:00
Richard Davey
82325ecc8a Finished Group documentation. 2013-10-02 01:51:30 +01:00
Richard Davey
e5b1faace6 Preparing more documentation. 2013-10-02 01:16:40 +01:00
Richard Davey
7c7cd8b01d More docs and quick patch to stop the body.allowRotation messing things up. 2013-10-01 16:56:47 +01:00
Richard Davey
ca113b85aa More docs coming on. 2013-10-01 16:39:39 +01:00
Richard Davey
a38ad2d1a9 Merge pull request #85 from onedayitwillmake/dev
Fixed accidentally overwroting remove function with a prepend function
2013-10-01 08:16:16 -07:00
Richard Davey
9b4b267e7a Working through building the docs. 2013-10-01 16:15:45 +01:00
Mario Gonzalez
f593afd164 Fixed accidentally overwroting remove function with a prepend function 2013-10-01 10:08:09 -04:00
Richard Davey
0a98bb67d8 jsdoc blocks added to every file and tidied up. 2013-10-01 15:05:30 +01:00
Richard Davey
305b12d76b Adding docs. 2013-10-01 15:01:46 +01:00
Mario Gonzalez
fa8ad51c79 Fixed bug in LinkedList#remove that could cause first/tail to be have pointers to dead node 2013-09-30 22:06:48 -04:00
Richard Davey
480d90b009 * Removed the callbackContext parameter from Group.callAll because it's no longer needed.
* Updated Group.forEach, forEachAlive and forEachDead so you can now pass as many parameters as you want, which will all be given to the callback after the child.
* Updated build script so it can be run from the command-line and includes UMD wrappers (thanks iaincarsberg)
2013-10-01 02:19:08 +01:00
Richard Davey
8668b82ef6 * Fixed issue causing Keyboard.justPressed to always fire (thanks stemkoski)
* Added Keyboard.addKey() which creates a new Phaser.Key object that can be polled for updates, pressed states, etc. See the 2 new examples showing use.
2013-10-01 01:18:29 +01:00
Richard Davey
16b1913de1 * Fixed issue in Sound.play where if you gave a missing marker it would play the whole sound sprite instead.
* Button.setFrames will set the current frame based on the button state immediately.
* InputHandler now creates the _pointerData array on creation and populates with one empty set of values, so pointerOver etc all work before a start call.
* Added Canvas.setUserSelect() to disable touchCallouts and user selections within the canvas.
* When the game boots it will now by default disable user-select and touch action events on the game canvas.
* Loaded.setPreloadSprite now rounds the width/height values and starts from 1. This fixes canvas draw errors in IE9/10 and Firefox.
2013-09-30 17:12:22 +01:00
Richard Davey
8d17e1f963 Sound duration fixes. 2013-09-30 12:17:21 +01:00
Richard Davey
e3384b7ff7 Merge pull request #71 from webeled/dev
More examples migrated across.
2013-09-30 04:16:44 -07:00
Richard Davey
c5d90a7722 Merge pull request #74 from cottonflop/dev
Fix for incorrect new particle positioning (issue #73)
2013-09-30 03:20:11 -07:00
Richard Davey
b0a9c646c9 Merge pull request #76 from XekeDeath/dev
Fix for particles emitting in the wrong area when using emitter.width/height. And small change to make animation looping more robust.
2013-09-30 03:16:33 -07:00
Richard Davey
31bbf05ace * Fixed small bug stopping Tween.pause / resume from resuming correctly when called directly.
* Fixed an issue where Tweens.removeAll wasn't clearing tweens in the addition queue.
* Change: When you swap State all active tweens are now purged.
2013-09-30 11:15:50 +01:00
XekeDeath
62b5aa9bd9 Removed redundant assignment. 2013-09-30 13:28:17 +10:00
XekeDeath
ce3e1708e0 Merge branch 'dev' of https://github.com/XekeDeath/phaser into dev 2013-09-30 13:04:29 +10:00
XekeDeath
80e80ddccb Make animation looping robust when skipping frames. 2013-09-30 13:04:22 +10:00
XekeDeath
29dbbcae52 Fix Particle Emitters when using Emitter width/height 2013-09-30 13:02:22 +10:00
Betsy Cottonflop
40b968028a Fix for incorrect new particle positioning 2013-09-28 16:52:37 -07:00
Richard Davey
497d15b5bc Sprite.play 2013-09-27 13:47:22 +01:00
Webeled
903b11b730 Groups examples and some boolean checks corrected 2013-09-27 13:27:15 +01:00
Richard Davey
18c695e9dd PixiPatch and other 1.0.7 features 2013-09-27 09:57:08 +01:00
Richard Davey
6353d8c7ab Fixed some eases. 2013-09-26 15:22:49 +01:00
Richard Davey
9642d4994a 1.0.6a release to fix an issue in the StateManager. 2013-09-26 11:49:58 +01:00
Richard Davey
e77dba402c Beta warning added. 2013-09-24 16:02:58 +01:00
Richard Davey
9d84429960 Group length checks 2013-09-24 15:49:21 +01:00
Richard Davey
891369b197 Preparing for 1.0.6 release, but moving physics changes to dev. 2013-09-24 15:28:29 +01:00
Richard Davey
51049128f5 Collision fixes for testing 2013-09-23 22:23:17 +01:00
Richard Davey
257cbe3be8 Much more stable collision, just need to refactor the Tilemap handling - see if I can optimise it a bit too. 2013-09-23 03:26:08 +01:00
Richard Davey
bc02a1a05e Fixing collision issues 2013-09-23 01:06:09 +01:00
Richard Davey
093bf8343d Graphics fixes and other changes 2013-09-22 22:55:34 +01:00
Richard Davey
6b9484aa80 Merge pull request #60 from TheJare/master
Fix bug in StateManager...
2013-09-22 14:32:25 -07:00
Richard Davey
f66e6326e3 Merge pull request #61 from powerfear/master
make tweens chainable with .to
2013-09-22 14:13:30 -07:00
Richard Davey
20f63c0af2 Fixed Graphics not working correctly. 2013-09-22 15:22:45 +01:00
TheJare
557160c3c2 Fixes to math library 2013-09-22 03:43:10 +02:00
Luiz "Bills"
8132427870 fix antialias bug 2013-09-21 21:40:36 -03:00
TheJare
15ad941908 Alternative way to specify tile size in spritesheets: negative means how many tiles there are 2013-09-21 19:23:25 +02:00
Richard Davey
d1ea96fd83 Input updates 2013-09-21 13:07:06 +01:00
powerfear
c36543a261 make tweens chain loopable 2013-09-20 21:47:58 -04:00
TheJare
a4bc69c2f7 Fix box dimensions in PIXI.BitmapText. Support anchor in Phaser.BitmapText 2013-09-21 01:03:19 +01:00
powerfear
f31d56584d make tweens chainable with .to
Allow successive .to calls to chain tweens, and an example using it.
2013-09-20 19:14:50 -04:00
Richard Davey
45426be0bc Assets update 2013-09-20 23:21:12 +01:00
TheJare
4b6147d3e3 Fix bug in StateManager where a state's update function might not get called if it has an empty preload function 2013-09-20 22:42:04 +01:00
Richard Davey
68f45709d8 Merge pull request #56 from cocoademon/master
Some small animation fixes
2013-09-20 08:56:49 -07:00
Richard Davey
a415e779d1 Final 1.0.5 release. 2013-09-20 13:55:33 +01:00
Cameron Foale
61b9e119cb Incorrect input array in FrameData.getFrames 2013-09-20 17:48:38 +10:00
Cameron Foale
ec3fc8f307 Fixes numeric frame indexes on animations 2013-09-20 17:39:02 +10:00
Richard Davey
9e88da5c66 Multiple animation fixes in place. 2013-09-19 23:47:50 +01:00
Richard Davey
e938e41c73 Merge pull request #54 from webeled/master
Lots of JSDdocs done, and some camera examples
2013-09-19 12:15:26 -07:00
Webeled
26a595cd44 JSDocs update ;) 2013-09-19 16:34:48 +02:00
Richard Davey
3f1cafe21f Put the famous idnetityMatrix typo back in so it doesn't break Pixi 2013-09-19 13:33:51 +01:00
Webeled
78a062dfb6 Updated my files and the documentation checklist 2013-09-19 13:17:49 +02:00
Webeled
6e4631a849 First commit of the day 2013-09-19 10:36:15 +02:00
Cameron Foale
6fde862f61 Make Phaser.Text play nicely with scrolling, by using an explicit x, y 2013-09-19 16:57:19 +10:00
Cameron Foale
4f969901da Fixed typo 'indetityMatrix' in RenderTexture 2013-09-19 16:41:34 +10:00
Richard Davey
c5fc5e3394 Fixed various issues in the TweenManager, added length property to Group and improved the build script. 2013-09-19 04:45:08 +01:00
Richard Davey
cf26f68693 Added Math.numberArray 2013-09-18 14:08:26 +01:00
Richard Davey
47834ad478 Fixed issue in FrameData.getFrameIndexes where the input array was being ignored. 2013-09-18 14:02:31 +01:00
Richard Davey
91c07ea37d Animation delay put back to normal 2013-09-18 06:41:41 +01:00
Richard Davey
d9a49797c4 1.0.4 release 2013-09-18 06:34:56 +01:00
Richard Davey
3c5ea01e09 1.0.3 release - fixed Text and Bitmap Fonts, Animation documentation and more examples 2013-09-17 16:50:47 +01:00
Webeled
bb9761aaf4 It loops but still problems on the constructor 2013-09-16 17:40:56 +02:00
Webeled
fc584cf6bc Examples (audio, button,camera), and docs
Created some examples (audio, button,camera), and documented the source
code along the way
2013-09-16 16:37:30 +02:00
Richard Davey
e3869ff3ac * Fixed a bug in the AnimationManager where useNumericIndex was always set to true
* Added in lots of Particle examples
* Added in the start of a Breakout game
* Added in the start of a Platformer game
2013-09-16 01:52:15 +01:00
Richard Davey
e705509d29 Added lots of particles examples. 2013-09-16 01:08:06 +01:00
Richard Davey
8c9a7c8bc7 Adding more examples in. 2013-09-15 20:45:00 +01:00
Richard Davey
f069107e55 1.0.1 release - fixes issues in tile map collision, additional Animation stop checks and updated package license. 2013-09-15 03:58:38 +01:00
Richard Davey
49a6ba2c02 Updated Group to fix some issues with not checking children 2013-09-15 00:14:45 +01:00
Richard Davey
70233b7508 Updating examples with new runner and menu system. 2013-09-13 17:48:47 +01:00
Richard Davey
f664a4971b Tidying up for 1.0 release push to master. 2013-09-13 16:16:48 +01:00
Richard Davey
7c6e6df91a State swap example done and working. 2013-09-13 05:44:04 +01:00
Richard Davey
fd0a071cb3 Added Sprite.centerOn(x,y) and fixed the InputHander snap as a result. 2013-09-13 04:37:06 +01:00
Richard Davey
62d77e7038 Small new demo and refactored collision list - now far less comparisons to perform! 2013-09-13 04:22:12 +01:00
Richard Davey
0a42269479 Group vs. Group collision working - also fixed a bug in the Body.reset function that was causing some lovely physics errors :) 2013-09-13 03:52:05 +01:00
Richard Davey
ecc91fb4e0 More collision test cases and fixing a few issues as I go :) 2013-09-13 03:07:39 +01:00
Richard Davey
f812b92b8a Creating test cases. 2013-09-13 02:07:58 +01:00
Richard Davey
a1450680a4 Part way through re-factoring the collision handler 2013-09-13 00:53:03 +01:00
Richard Davey
9f687b4f8a Adding Type support for collision checks. 2013-09-12 21:54:41 +01:00
Richard Davey
79dc3566f4 Fixed some issues in Tilemap collision, updated the Emitter so x/y controls the point of emission (to stop collision getting out of whack) and fixed the postUpdate in body. 2013-09-12 20:59:56 +01:00
Richard Davey
336de314a1 Fixed an issue where the Tile.physicsElapsed would go insane if the game has been paused for a long time. 2013-09-12 16:18:44 +01:00
Richard Davey
92e86494e3 Tilemap Collision in and working :) Needs testing against Groups now. 2013-09-12 15:39:52 +01:00
Richard Davey
dbaf7269e9 Promoted the Tilemap to a DisplayObject and vastly simplified the load process. 2013-09-12 04:24:01 +01:00
Richard Davey
3d22d0e169 Fixed a bug in the tilemap rendering so the tile offsets were wrong. Now renders perfectly :) Also fixed issue that would cause the World to resize smaller than the game size (not allowed for rendering reasons). 2013-09-12 02:18:23 +01:00
Richard Davey
89b00db103 Tilemap Rendering is working :) 2013-09-12 00:55:27 +01:00
Richard Davey
95374339b9 Added a Sample Plugin and tested out the Plugin Manager. Working great :) 2013-09-11 17:32:53 +01:00
Richard Davey
fba731e740 Added optional "pixel perfect" input checks and tested against static sprites, animated sprites, physics sprites and sprites positioned outside the screen (needing camera shift to appear). 2013-09-11 16:25:46 +01:00
Richard Davey
f260108433 Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions. 2013-09-11 13:21:07 +01:00
Richard Davey
87858d6bbf Fixed a bug stopping legacy Audio from starting correctly. Also fixed an issue in the Loader causing it to not load the next file if an unsupported audio file was encountered. Fixed audio playback issues on Firefox/Waterfox as a result. 2013-09-11 11:33:27 +01:00
Richard Davey
e79dd5856d Added the ability to crop a sprite with a custom Rectangle. 2013-09-11 03:55:53 +01:00
Richard Davey
48ed27dfcc Finished off RenderTexture. Sprites can now accept a RenderTexture or a key when you create them. RenderTextures are also now stored in the cache under their own key, making re-using them across other Sprites much easier. Also ported over all of the Tilemap classes, but need to get them rendering. 2013-09-11 02:57:36 +01:00
Richard Davey
f885f7b023 Added CSS3Filters plugin. Also modified Sprite to contain preUpdate call, so that update can be over-ridden by custom Classes + added an example for this. 2013-09-11 00:35:21 +01:00
Richard Davey
e2eddc8b24 Added Full Screen support and tested it. Also added in the BitmapText game object and custom XML loader. Game now sends a pause and resume signal, which the TweenManager listens to and handles correctly. 2013-09-10 23:51:35 +01:00
Richard Davey
e41e35fd09 Fixed an error that stopped 2 tweens from being able to run on the same object. Also refactored a lot of the classes to remove prototype properties and move them to local instance properties. 2013-09-10 20:40:34 +01:00
Richard Davey
a486bf6b4a Phaser now running on iOS. Also fixed a legacy bug where a pending sound wouldn't play once it was touch unlocked. Also fixed Input not working on WebGL contexts. Added WebGL texture updates to the Group/World swap functions. 2013-09-10 16:46:39 +01:00
Richard Davey
5da0e42be4 Added in the Color Utils and removed the less important functions into ColorHarmony plugin. Updated Stage so backgroundColor can be a string or integer now. 2013-09-10 14:00:46 +01:00
Richard Davey
15fe5ed6c8 Fixed the Bring to Top bug and also fixed Group/World.swap when the child was a tail node. Also improved Group.dump significantly. Fixed Phaser.Utils namespace clash too. 2013-09-10 12:46:14 +01:00
Richard Davey
609ea7ec8f Added ability to Scale particles when emitted. 2013-09-10 11:18:50 +01:00
Richard Davey
4f950ae801 Fixed a fantastic FrameData bug. Also added support to the Emitter to handle multiple image keys and/or frames. 2013-09-10 11:09:25 +01:00
Richard Davey
5d3fe891cd Particle Emitter in and working. Nice and fast, and a lot more flexible than before. 2013-09-10 01:26:50 +01:00
Richard Davey
2ba6b4ff67 Added support for Pointer Lock API. 2013-09-09 19:59:31 +01:00
Richard Davey
60f0e8967f Added Phaser.Graphics and fixed the Out of World Bounds call. 2013-09-09 17:01:59 +01:00
Richard Davey
30fc4099c6 Out of bounds and Sprite events hooked up 2013-09-09 13:29:33 +01:00
Richard Davey
ee007cd28e Added in the game scaling handler and updated Stage 2013-09-09 12:35:20 +01:00
Richard Davey
c904475ae6 Added in the game scaling handler and updated Stage 2013-09-09 12:35:09 +01:00
Richard Davey
13d6ab512b Fixed the Button frame issue and Down states now work properly 2013-09-09 10:30:01 +01:00
Richard Davey
9b6c819e0e Input Component done and new Button object done and included. Also finished the build script. 2013-09-09 00:30:44 +01:00
Richard Davey
50624c1552 Input Handler working. Dragging, sliding, click detection, multi-touch. Appears to be an issue with bringToTop but it's most likely a problem with the swapChild function rather than Input. 2013-09-08 22:58:15 +01:00
Richard Davey
ebda1f99e3 Input Handler 90% there. 2013-09-08 22:38:19 +01:00
Richard Davey
abe344b408 More work on the pointer handlers, nearly there! 2013-09-08 17:39:23 +01:00
Richard Davey
90b1946c25 Input Handler mostly restored 2013-09-08 13:23:21 +01:00
Richard Davey
78598ae54a Implemented my own LinkedList class to make the new Input Handler easier to work with. And also just generally useful to have too. 2013-09-08 11:24:41 +01:00
Richard Davey
fe6664eac7 Fixed the Body collide issues and optimised the process at the same time. Now the QuadTree appears to work perfectly as a result. Bonus! 2013-09-08 01:24:59 +01:00
Richard Davey
bb5d8ca170 a 2013-09-07 21:12:47 +01:00
Richard Davey
eb7af3d2a2 Group nearly done. Sprite.anchor appears to be broken though, must fix. 2013-09-06 20:20:58 +01:00
Richard Davey
822a2df289 Lots of work on Group and also resolved the issue of the core game loop structure not being quite right. 2013-09-06 15:00:05 +01:00
Richard Davey
0c97e8e151 Starting work on Group. 2013-09-05 21:07:44 +01:00
Richard Davey
b2fa345c9d console banner maker 2013-09-05 03:35:12 +01:00
Richard Davey
c552d86639 Added swapChildren to Phaser.World 2013-09-05 02:11:54 +01:00
Richard Davey
87d52bd85e Linked List node swap 2013-09-05 01:12:34 +01:00
Richard Davey
f4dab1847e Working on Linked List node swapping. 2013-09-04 21:03:39 +01:00
Richard Davey
10bc22b717 Motion helper functions added to the ArcadePhysics class. 2013-09-04 16:12:58 +01:00
Richard Davey
128bdccd79 Sorted out the QuadTree issues and resolved a small but vital bug in separateX, also re-organised the collision flags in Body. 2013-09-04 13:54:55 +01:00
Richard Davey
b2263c16c6 Patched the QuadTree, now working a whole lot better but am worried it's still working out too many collisions. 2013-09-04 04:54:43 +01:00
Richard Davey
3f3b6bfd35 Brand new highly optimised QuadTree added, populated by the game loop and world ready to be queried as often as you want in your game loop, without creating hundreds of new QuadTrees each frame. 2013-09-04 03:48:15 +01:00
Richard Davey
2a353a0327 Flixel physics optimised about as much as it can be. Also added world and local gravity support and flag to toggle it on / off. 2013-09-04 01:10:01 +01:00
Richard Davey
0f438d5221 separateX up and working sweet with gc spike removal too 2013-09-03 19:34:38 +01:00
Richard Davey
a27f6d6562 Forces working, collision half way there. 2013-09-03 17:28:12 +01:00
Richard Davey
2fe8a3a0a7 Physics integration and a fix to Tween that stopped the repeat/yoyo from working. 2013-09-03 17:07:05 +01:00
Richard Davey
bdc1c2ceb9 Sorted out the bounds for when sprites are in trimmed texture atlases to stop the physics checks going insane. Also bundled in Advanced Physics lib, although not hooked up yet. 2013-09-03 15:35:40 +01:00
Richard Davey
8a90a87492 Text converted and a couple of examples created. Using new extend system, so much smaller classes now. 2013-09-03 06:02:47 +01:00
Richard Davey
5acb4e9f1b Borrowed the 'extends' system from jQuery and now the codebase will be considerably smaller :) TileSprite already updated to new format. 2013-09-03 04:58:30 +01:00
Richard Davey
e28cdbeb6a Moving to using a small extend / mixin method to avoid code repeating now we're extending Pixi display objects. 2013-09-03 04:43:26 +01:00
Richard Davey
66e86e7d82 Tiling Sprite added 2013-09-03 03:19:42 +01:00
Richard Davey
c18de53bab SoundManager converted and playing audio :) 2013-09-03 01:24:16 +01:00
Richard Davey
ed13283f0f Tided up the cull / bounds demo. 2013-09-03 00:42:17 +01:00
Richard Davey
7c597999d4 Camera culling now in and working, although you need to enable it on a per sprite basis. Also fixed a few small bugs in the Animation Manager. 2013-09-02 23:22:24 +01:00
Richard Davey
6235f25184 LL 2013-09-01 22:02:42 +01:00
Richard Davey
d31777972c Camera culling 2013-09-01 19:52:50 +01:00
Richard Davey
7bdcbf5c2a getBounds update. 2013-09-01 13:17:44 +01:00
Richard Davey
71b4cc532f Added Sprite.getBounds function 2013-09-01 11:15:13 +01:00
Richard Davey
d54a92310d Optimised sprite a tiny bit more and created a couple of fun demos :) 2013-09-01 06:21:39 +01:00
Richard Davey
fef28c6a6a Optimised update loop to reduce calculations if the transform doesn't change. 2013-09-01 05:50:47 +01:00
Richard Davey
6ef89826df Phew.. lots of transform matrix math over and I can finally get all 4 points of a Sprite, regardless of rotation, translation or scale of itself or any of its parents. 2013-09-01 05:29:53 +01:00
Richard Davey
12e5d2aceb ... 2013-09-01 05:22:08 +01:00
Richard Davey
801c2af9d4 Updated world so the update run uses the linked list. Sprite.getLocalPosition now almost working, but falls over for children. 2013-09-01 03:57:24 +01:00
Richard Davey
188d6239a3 Edge points in and working. 2013-09-01 03:15:27 +01:00
Richard Davey
99e0934244 More late-night math. 2013-09-01 02:28:51 +01:00
Richard Davey
5d4da0ce66 Working out culling 2013-09-01 00:35:29 +01:00
Richard Davey
22847f6ade DebugUtils converted, re-name spaced the Input classes and started on Camera culling. 2013-08-31 21:50:34 +01:00
Richard Davey
70ee753859 The complete Phaser Input Manager suite is now ported across. Not tested in earnest yet, but all the grunt work is at least done. 2013-08-31 13:54:59 +01:00
Richard Davey
f9aa7f7339 Fixed small bug in Game where AUTO didn't detect the lack of WebGL properly. Tidied up Math a bit more. 2013-08-30 20:05:29 +01:00
Richard Davey
54d98944e4 Mummy attack :) 2013-08-30 18:56:10 +01:00
Richard Davey
e77f5da2cd Fixed the TweenManager and added support to GameObjectFactory, so you can create tweens easily now all hooked in to the internal game clock. Also added the AnimationManager into Sprite, so you can create and play animations directly from sprites nice and easily. 2013-08-30 17:09:43 +01:00
Richard Davey
936118bd91 AnimationManager done and in, need to fix texture update bug, otherwise finished. 2013-08-30 04:20:14 +01:00
Richard Davey
a81a8effb4 Sprite Sheets now parse and render correctly too. 2013-08-30 02:18:00 +01:00
Richard Davey
1e59bc69fb Fixed bug in RequestAnimationFrame where the time wasn't being updated properly. 2013-08-30 02:00:30 +01:00
Richard Davey
559d75eba1 When Phaser loads images they are now added to the PIXI.BaseTextureCache. Also when it loads atlas data (regardless of the 3 formats) they are converted into PIXI TextureCache entries using UUIDs to avoid name clashes and to support index based atlases. 2013-08-30 01:50:17 +01:00
Richard Davey
4c1dacfa02 Loader can now parse both JSON Hash and JSON Array formated texture atlas files. 2013-08-29 22:53:55 +01:00
Richard Davey
5b036557c0 The start of World, also moved Game/Stage into core. 2013-08-29 21:57:36 +01:00
Richard Davey
6bf7bab917 Fixed some errors in Rectangle and more Pixi hooks added, now creating the Stage properly and rendering sprites. 2013-08-29 19:20:04 +01:00
Richard Davey
19483bafed Canvas and Stage added and starting to merge in Pixi deeply. 2013-08-29 17:20:59 +01:00
Richard Davey
16749edf20 More state swapping features and optimised Game.loop. 2013-08-29 15:14:56 +01:00
Richard Davey
3d4783980e StateManager improving in leaps and bounds. 2013-08-29 14:38:51 +01:00
Richard Davey
4bbcc380c5 State handling done. Refactored the Game constructor a LOT. Now works from within closures, outside of them, with Phaser.State objects or normal Objects with the right functions inside. Also fixed some small bugs in PluginManager and various scope issues with RAF. 2013-08-29 07:06:16 +01:00
Richard Davey
3c8cd20b70 RequestAnimationFrame done and optimised massively. PluginManager added (but needs testing). Game now fleshed out with all the state changing and core loop, also optimised heavily. Also Pixi integration started and the basics are working well :) 2013-08-29 03:52:59 +01:00
Richard Davey
b8d3a61c97 Added the TweenManager 2013-08-29 00:09:12 +01:00
Richard Davey
d323404676 Starting integration of tween.js 2013-08-28 21:29:25 +01:00
Richard Davey
8a09469798 Final methods added. 2013-08-28 19:18:34 +01:00
Richard Davey
9289f690eb Rectangle mostly done, needs the prototype functions adding and some test cases made. 2013-08-28 17:19:13 +01:00
Richard Davey
89fe2855e4 Fixed a few things in Circle and added the Point object. 2013-08-28 15:58:37 +01:00
Richard Davey
0f58945212 Circle and Math converted 2013-08-28 15:27:22 +01:00
Richard Davey
09def364c3 Farewell TypeScript, see you on the other side. 2013-08-28 07:02:57 +01:00