Commit graph

3086 commits

Author SHA1 Message Date
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