Commit graph

12574 commits

Author SHA1 Message Date
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
Richard Davey
0e55e644a9 Doc updates 2013-08-26 17:45:02 +01:00
Richard Davey
8a85155c08 Fixed the tilemap pre/post update hooks. 2013-08-25 10:35:58 +01:00
Richard Davey
ecf61fc80c Updated Game.switchState to accept state objects and fixed the OrientationScreen. 2013-08-25 09:59:23 +01:00
Richard Davey
c2745bec35 Pre-vacation push 2013-08-16 23:44:06 +01:00
Richard Davey
c884bab7ec Fixed instance check issue in Game and tidied up the stageScaleMode inner loop. 2013-08-16 02:18:12 +01:00
Richard Davey
f76ba6840f Animation and Input related fixes 2013-08-16 00:14:57 +01:00
Richard Davey
619b8415ed Reverting back to the only version of TypeScript that really works :( 2013-08-13 04:22:24 +01:00
Richard Davey
91dc7a4acf Tidying up and trying to fix more stupid TypeScript errors. 2013-08-12 04:08:15 +01:00
Richard Davey
e74114f384 Docs 2013-08-12 00:52:35 +01:00
Richard Davey
142348f70b Updates 2013-08-11 21:31:35 +01:00
Richard Davey
7aa82a1cb0 All physics projections added. 2013-08-11 19:02:10 +01:00
Richard Davey
c2d7fb7fab Merged N+ physics in and tidied up the Docs folder and logos. 2013-08-11 12:15:53 +01:00
Richard Davey
aff7d99a8a Fixed bug where children of Groups wouldn't have their preUpdate methods called. 2013-08-09 20:03:36 +01:00
Richard Davey
0b1bcaf270 Set the default camera to direct itself to the Stage. 2013-08-09 18:44:45 +01:00
Richard Davey
f9776f30fc Added the CanvasUtils class and moved some stuff out of Stage into it. 2013-08-09 17:47:08 +01:00
Richard Davey
8b2f1cca51 Various small fixes 2013-08-09 17:02:47 +01:00
Richard Davey
e002827a20 Fixed load add 2013-08-09 16:56:38 +01:00
Richard Davey
c2f0128797 Added types 2013-08-09 16:54:46 +01:00
Richard Davey
2d49a31ecd yuidoc scripts added. Tidied up the Docs folder. Added back in the Emitter and fixed the Tests that weren't compiling. 2013-08-09 05:08:54 +01:00
Richard Davey
9bf7d070f5 Added in the JS source files for doc generation and the definitions to csproj XML script. 2013-08-09 03:12:33 +01:00
Richard Davey
1248a6c06e Whole codebase updated to TypeScript 0.9.1, phew! 2013-08-08 19:16:47 +01:00
Richard Davey
df32190db8 Updating for TypeScript 0.9.1, part 1. 2013-08-08 11:34:33 +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
48f6d850c8 Fixed bug where a Tween with both yoyo and loop enabled would get out of sync. 2013-08-08 06:08:53 +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
a7873a3b74 Removed the FX project as it's no longer needed and tidied up the build folder. 2013-08-06 03:43:53 +01:00