Richard Davey
48f90fec34
Implemented a State based MainLoop system, with fully split logic / render cycles and frame rate. Each State can now set its own frame rate. Added in more Camera commands, moved the Tween Manager into the State Systems, and started work on the new heavily reduced Game object.
2016-11-08 01:50:57 +00:00
Richard Davey
d568d2bede
Moved _sys to a StateSystems class to keep things much cleaner, and avoid setter inheritance mess.
2016-11-06 12:18:08 +00:00
Richard Davey
268e40ea7e
Add to 'state' by default now.
2016-11-03 22:26:39 +00:00
Richard Davey
6e284cf4f9
Removed test code.
2016-11-01 01:19:32 +00:00
Richard Davey
03b651f79f
Loads of tweaks re: Transform inheritance.
2016-11-01 00:31:45 +00:00
Richard Davey
8e2c5b7669
Removed dead code.
2016-10-31 00:03:57 +00:00
Richard Davey
bd80999b33
Refined the Image and WebGL Renderers.
2016-10-30 22:58:14 +00:00
Richard Davey
577b81580a
New batch system working.
2016-10-30 14:57:38 +00:00
photonstorm
8de992175e
Renamed Renderer spriteBatch to just batch.
2016-10-25 14:30:29 +01:00
Richard Davey
120b6eb2bd
Blend Modes work. More optimisations in the batch manager.
2016-10-25 03:57:34 +01:00
Richard Davey
4c6691863c
Fixed Multi Texture support in the new batch manager.
2016-10-25 00:41:45 +01:00
photonstorm
2af81bdfba
Masses of refactoring in BatchManager, making it as compact and fast as possible.
2016-10-24 17:14:10 +01:00
Richard Davey
3cb806c86e
New addVerts method working.
2016-10-23 11:25:44 +01:00
photonstorm
64cd88f7b4
Trying out flash effect.
2016-10-19 17:17:26 +01:00
photonstorm
f1e8396b6f
Tidying up.
2016-10-19 14:30:43 +01:00
photonstorm
fb3bb4b32f
Refactored into new Base Game Object class, that Image and Sprite (and everything else) will now extend. Much more versatile, and a lot less code duplication.
2016-10-19 11:54:00 +01:00
Richard Davey
5273799912
Added Color component to Stage and Image.
...
Added tint support into the Batch Manager.
2016-10-19 02:21:20 +01:00
photonstorm
18b12dfc3e
Huge amount of work getting the WebGL renderer sorted out, tidied up and merged with the latest Texture and Transform components.
2016-10-18 17:03:25 +01:00
photonstorm
f9ffe098c3
Check the worldAlpha when rendering.
2016-10-14 06:32:03 +01:00
photonstorm
9961eeee6b
Added worldAlpha property.
2016-10-14 06:31:01 +01:00
photonstorm
582d705b1f
Updated base game objects.
2016-10-14 04:09:22 +01:00
photonstorm
ff2caeeb1c
Some quick Image tests (will need to move to Sprite soon)
2016-10-14 02:21:21 +01:00
photonstorm
c5088d4ba6
Updated Factory to add to parent.
2016-10-14 02:21:04 +01:00
Richard Davey
483c3eb34b
Updated to work with new Image properties.
2016-10-13 01:54:40 +01:00
Richard Davey
559126d7b5
Moved to using new Transform component, and adjusted other properties.
2016-10-13 01:54:18 +01:00
Richard Davey
72ee3c7a84
Updating Image game object to use the new Transform component.
2016-10-13 00:08:26 +01:00
photonstorm
9ed542781b
Added the new Data Component.
2016-10-12 15:19:04 +01:00
photonstorm
ce3308ea1d
Hooking the Loader and Cache into the new Texture Manager.
2016-10-11 14:52:17 +01:00
Richard Davey
0af16817a5
Refactored GameObjects
to GameObject
.
2016-10-09 22:27:58 +01:00
Richard Davey
380e717e52
Finished off missing factories. Moved over the docs. Changed rogue @returns to @return everywhere.
2016-10-08 16:17:46 +01:00
Richard Davey
729020477a
New Game Objects structure in place, and starting to take shape.
...
Moved BitmapData and RenderTexture into the textures folder for now.
All Game Objects now have their own sub-folder, with their Factory and renderer functions alongside them, plus any other files they need.
New Factory class added. Currently hooked into `game.factory` for testing, but will swap to `game.add` when complete.
2016-10-08 03:05:42 +01:00