Commit graph

43 commits

Author SHA1 Message Date
Richard Davey
5cef085eb5 Updated TimerEvent and Clock
Swapped to Class format. Added timeScale, startAt and more robust loop handling.
2017-06-28 22:21:39 +01:00
Richard Davey
6ac524e3bb Added State Clock and TimerEvents 2017-06-28 17:17:54 +01:00
Richard Davey
b77c34562a TweenManager.begin is now called. 2017-05-17 04:37:30 +01:00
Richard Davey
b769fe3cb1 Create base TweenManager and added to State Systems. 2017-05-09 20:24:39 +01:00
photonstorm
a232e6c97d Created VariableTimeStep loop and integrated it into the Game and State Systems.
Added GetSpeed Math util.
2017-04-27 17:03:19 +01:00
Richard Davey
07f72f489a Added TickerLoop and made it optional via config. 2017-04-27 03:11:56 +01:00
Richard Davey
2c4a697665 Expose the GameObjectCreator. 2017-04-11 02:49:13 +01:00
Richard Davey
86d048b079 Lots of tidying up + preUpdate call added back in. 2017-04-04 23:59:02 +01:00
Felipe Alfonso
9217012b79 state;s children depth sorting 2017-03-23 16:51:02 -03:00
Richard Davey
63b2b55cf8 Brand new components and Class structure for Game Objects. Cleaner, leaner and more powerful than ever before. Whoop whoop! :) 2017-02-23 03:10:48 +00:00
Richard Davey
8fd0a7a531 Finished off the Keyboard Manager, tided up the classes and removed un-needed functions. 2017-02-21 16:05:36 +00:00
Felipe Alfonso
efdc4898f3 Removed global scene graph. New system works with camera system 2017-02-20 21:38:22 -03:00
Richard Davey
0975752463 Added new CameraManager and tided up all the related functions. 2017-02-12 13:19:55 +00:00
Felipe Alfonso
e4f72c99c8 Adding camera reference and removing camera reference 2017-02-10 10:49:18 -03:00
Felipe Alfonso
34713ab16b Camera effects 2017-02-09 21:48:32 -03:00
Richard Davey
2c37dc3fda StateManager moved to GlobalStateManager and a new State level proxy introduced.
You can now start, stop and swap states on the fly.
State.visible now also skips the renderer.
2017-02-08 01:09:12 +00:00
Felipe Alfonso
00185d6193 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-02-07 21:08:20 -03:00
Felipe Alfonso
3e3eb60801 Multiple camera clipping 2017-02-07 21:08:09 -03:00
Richard Davey
a877cdaa02 Fixed State.renderToTexture setting. 2017-02-07 22:00:55 +00:00
Richard Davey
b0e2018c73 Fixed issue with scope of the GameObjectFactory in multi-state games. 2017-02-07 21:49:25 +00:00
Richard Davey
7cef0e49fd Working through context issues. 2017-02-07 20:47:41 +00:00
Richard Davey
2510bee27c Updating the StateManager so it supports renderToTexture and advanced State configs. 2017-02-07 18:55:37 +00:00
Felipe Alfonso
002facb59a Clipping added to cameras on webgl 2017-02-07 13:12:20 -03:00
Felipe Alfonso
b8524200c3 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-02-07 12:47:39 -03:00
Felipe Alfonso
3301a07b88 Camera implementation 2017-02-07 12:47:27 -03:00
Richard Davey
c2657f3d19 Fixed States from instances. 2017-02-06 23:59:15 +00:00
Felipe Alfonso
3f0509bead fixed V8 deopt on Transform's updateRoot 2017-01-31 20:06:13 -03:00
photonstorm
69a9e59f8f Testing performance. 2017-01-31 17:04:31 +00:00
photonstorm
9371753b2c New Anchor component.
DrawImage now takes anchor arguments.
GameObject.angle fixed and all the other Transform accessors added back in (except Pivot).
Wrap fixed to not wrap if value is within range already.
2017-01-31 14:55:15 +00:00
Felipe Alfonso
371e779b11 Fixed issue when trying to render image on canvas with new transform 2017-01-31 10:32:03 -03:00
Richard Davey
7d83c9971f Fixed new Transform Component integration with Canvas Renderer. 2017-01-31 00:56:13 +00:00
Richard Davey
ebf4a50ca6 Updated so Game Objects and States are using the new experimental Transform 2. 2017-01-30 23:58:29 +00:00
photonstorm
733d056899 Game Cache added and tests written and working.
Loader updated.
Cache now emits events on add and remove.
2017-01-30 16:56:04 +00:00
Richard Davey
0e0fceb5f7 Removed Camera as root container. Images now skipTransform. 2017-01-27 00:07:57 +00:00
Richard Davey
ce3bb7d1fa Implemented RTree spatial sort for the display list handling. Canvas Renderer updated to take advantage of it. Camera updated to extend BaseTransform + add extra properties. Array QuickSelect function added. Frame radius calculation added. 2017-01-26 04:06:10 +00:00
photonstorm
6ee499132c Huge refactor to sort out the game loop flow. 2017-01-25 17:10:19 +00:00
photonstorm
e9c4f28db3 Exposed Texture Manager via state.textures. 2016-12-08 16:41:23 +00:00
Richard Davey
14ee4c2d1b Added Camera and fixed path issues. 2016-12-07 02:40:07 +00:00
photonstorm
b3e4c349d2 Getting ready to hook the Loader to the Texture Manager. 2016-12-06 16:49:29 +00:00
photonstorm
7cf7eadb1f Added in the new Texture Manager and all Parsers. 2016-12-06 16:18:28 +00:00
photonstorm
c76c5741e7 Added in the new EventDispatch and Event system. 2016-12-05 15:29:44 +00:00
Richard Davey
77b469b1a5 State level Loader re-implemented, and lots of BaseLoader features updated. 2016-11-30 17:16:45 +00:00
photonstorm
34303f1df6 Added in the Update Manager, MainLoop and State Systems. 2016-11-29 15:25:14 +00:00