Commit graph

75 commits

Author SHA1 Message Date
Richard Davey
612db78818 Added AnimationJSON Loader File type.
Fixed ToJSON component.
2017-04-12 15:27:05 +01:00
photonstorm
93b4d33a78 Suffix support in multiatlas call. 2017-04-11 17:21:42 +01:00
Richard Davey
2c4a697665 Expose the GameObjectCreator. 2017-04-11 02:49:13 +01:00
Richard Davey
ecbc428917 Loader shouldn't append a hypen for multi-atlases. 2017-04-08 01:13:38 +01:00
Richard Davey
86d048b079 Lots of tidying up + preUpdate call added back in. 2017-04-04 23:59:02 +01:00
Richard Davey
8ec9061b43 Removed 'group' / 'parent' argument and forced to the State children component. You should use 'make' if you wish to add elsewhere. 2017-04-04 23:58:33 +01:00
Richard Davey
acea677424 Added ability to load HTML files into textures. 2017-04-04 14:54:22 +01:00
Richard Davey
6f115a60e3 Added ability for the Loader to handle loading SVG files and creating Images from them (for use as Sprite textures) 2017-04-04 02:54:27 +01:00
Richard Davey
72f12a1e79 Add.Existing. 2017-03-24 04:33:40 +00:00
Felipe Alfonso
9217012b79 state;s children depth sorting 2017-03-23 16:51:02 -03:00
photonstorm
16517ce898 Create Function.call to apply the scope 2017-03-14 17:00:14 +00:00
Felipe Alfonso
d6f07973b2 Fixed transform issue when dealing with camera transforms 2017-03-06 15:13:39 -03:00
Richard Davey
0fc9c3f4ad Moved BitmapText into new folder and added in scale and font size support. 2017-03-01 00:16:35 +00: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
2b8426a199 Fixed data passing. 2017-02-17 02:07:56 +00:00
Richard Davey
1e17678648 Refactoring Game Loop to include MasterClock and State data packages. 2017-02-17 01:43:55 +00:00
photonstorm
bea71e7879 Added data payload to State Manager. 2017-02-16 17:18:50 +00:00
Richard Davey
e73cf7a7d3 Tidying up. 2017-02-12 13:21:27 +00: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
00ac45137d Trying to fix State order. 2017-02-07 19:53:21 +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
7ef44200bb You can now specify a files payload in the State config, which are loaded automatically before the State is run. Useful for config files, small preloader assets, etc. 2017-02-07 12:54:51 +00:00
Richard Davey
63c11faeb2 Multiple states now rendering together again. 2017-02-07 00:41:21 +00:00
Richard Davey
c2657f3d19 Fixed States from instances. 2017-02-06 23:59:15 +00:00
Richard Davey
7999f72d81 Moved GetObjectValue into utils/object 2017-02-04 05:39:37 +00:00
Richard Davey
7c06670f90 Added Loader.SpriteSheet, now using a new config object rather than a bunch of arguments. 2017-02-04 05:36:06 +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
5c495bbdf8 RAF now calls StateManager.step directly.
Game no longer has RNG property.
2017-01-25 12:02:18 +00:00