Richard Davey
b4edeaec10
Updated GameObjectCreator to use same system as GameObjectFactory.
2017-09-14 02:27:29 +01:00
Richard Davey
1340e6930f
Refactored the GameObjectFactory so it's now populated by the GameObjects directly, avoids globbing all GOs into it
2017-09-14 01:32:10 +01:00
Richard Davey
ae13ac702e
The Canvas and WebGL Renderers are now included based on Webpack feature flags, allowing us to build a 'WebGL only' or 'Canvas only' version of Phaser 3.
2017-09-13 15:28:17 +01:00
Richard Davey
6f3ec9fb9e
All Game Objects now use GameObject.RENDER_MASK to compare against instead of a local property.
2017-09-13 00:58:25 +01:00
Richard Davey
fe2f82c229
Updated Camera.Ignore so it works with the canvas renderer as well
2017-08-15 23:51:37 +01:00
Felipe Alfonso
9856200fdf
Added camera gameobject filtering
2017-08-15 16:42:04 -03:00
photonstorm
d804e056ed
Renaming from State to Scene internally.
...
This is one monster update.
2017-07-14 14:50:51 +01:00
photonstorm
2aae473658
Removed redundant Color component and added in new Tint component. Exposed via WebGL Renderer for Images, Sprites and Text.
2017-07-04 12:01:27 +01:00
Richard Davey
f770712c2a
Huge refactoring of States, plugins and object factories
2017-07-04 01:59:31 +01:00
Felipe Alfonso
25977cfc4d
Dynamic tilemap webgl rendering
2017-06-21 22:19:03 -04:00
Richard Davey
929d6fc8ef
Enforced GameObjects to specify their type (a string based const)
2017-04-13 00:05:12 +01:00
Richard Davey
c8d22fe881
Added BuildGameObject and related functions. Allows you to create a game object via a configuration object, rather than having to call all the functions directly. Applied to Images and Sprites so far. Accessed via this.make.sprite
or this.make.image
.
2017-04-11 02:49:13 +01:00
Felipe Alfonso
8c479a56c0
Effect Layer
2017-04-06 22:49:15 -03:00
Felipe Alfonso
b755fe06b9
Removed RenderPass
2017-04-05 11:23:34 -03:00
Richard Davey
336ea77587
Fixed GO extends.
2017-04-05 02:10:48 +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
Felipe Alfonso
3e8e6141c8
Added render pass component to renderable game objects
2017-03-28 15:16:02 -03:00
Felipe Alfonso
29ec16fd33
Flip component added to Bob, Image, Sprite and Text
2017-03-20 20:37:17 -03:00
Richard Davey
be05610d3b
Removed redundant render vars and Origin method.
2017-03-15 23:44:39 +00:00
Felipe Alfonso
d6f07973b2
Fixed transform issue when dealing with camera transforms
2017-03-06 15:13:39 -03:00
Felipe Alfonso
7dc2feace3
work in progress fix camera for transformed batch renderers
2017-03-03 18:28:04 -03:00
Richard Davey
3826eb732f
Working through getting the Bitmap Text size back.
2017-03-02 04:00:39 +00:00
Richard Davey
98eb2e3155
Renderers now using the Origin property.
2017-03-02 02:06:53 +00:00
Richard Davey
57a90997e7
Tidied up Class, fixed a few bounds checks and exposed the utils.
2017-02-28 01:10:45 +00:00
Richard Davey
5e5a5ac776
Testing out new Bounds component and Class getter mods.
2017-02-27 09:49:04 +00:00
Richard Davey
1cddea424e
Added and fixed-up the Container game object.
2017-02-24 02:59:44 +00:00
Richard Davey
b6bef1ded9
Fixed issue with component private vars being shared.
...
Added Key Capture to Keyboard Manager.
Added rotation and angle wrapping.
Optmized getBounds.
2017-02-24 01:45:24 +00:00
photonstorm
c88749af98
Added in GetBounds component and fixed angle error in Transform.
2017-02-23 17:15:41 +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
Felipe Alfonso
feed39a8e6
Canvas rendering working with the new game object
2017-02-22 19:15:50 -03:00
Felipe Alfonso
4deb7ea81c
Removed old Transform, renamed Transform2DMatrix to TransformMatrix and updated renderers to work with the new game object. Also a small optimization for TransormMatrix for Identity+translate+rotation+scale transformation
2017-02-22 13:44:14 -03:00
photonstorm
f083699986
Removed transform from Children.
...
Added parent property.
2017-02-22 16:37:49 +00:00
Felipe Alfonso
d309be3b2e
Canvas rendering working with the new system.
2017-02-21 17:05:18 -03:00
Felipe Alfonso
1a0f4119c6
Cameras working with BlitterBatch
2017-02-21 16:21:03 -03:00
Felipe Alfonso
efdc4898f3
Removed global scene graph. New system works with camera system
2017-02-20 21:38:22 -03:00
Richard Davey
b0e2018c73
Fixed issue with scope of the GameObjectFactory in multi-state games.
2017-02-07 21:49:25 +00:00
Felipe Alfonso
f488722212
Removed unnecessary localMatrix on transform
2017-01-31 21:35:53 -03:00
Felipe Alfonso
758369593f
Inlined spriteBatch.add
2017-01-31 18:40:29 -03:00
photonstorm
69a9e59f8f
Testing performance.
2017-01-31 17:04:31 +00:00
Felipe Alfonso
d1928a1254
SpriteBatch32 renderer using new transform
2017-01-31 13:27:07 -03: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
Richard Davey
7d83c9971f
Fixed new Transform Component integration with Canvas Renderer.
2017-01-31 00:56:13 +00:00
Richard Davey
0e0fceb5f7
Removed Camera as root container. Images now skipTransform.
2017-01-27 00:07:57 +00:00
photonstorm
6ee499132c
Huge refactor to sort out the game loop flow.
2017-01-25 17:10:19 +00:00
Felipe Alfonso
7decd4afcb
Blend Mode added to WebGLRenderer
2017-01-23 18:42:47 -03:00
Felipe Alfonso
bf9022bbe0
Anchoring support on SpriteBatch
2017-01-23 16:35:14 -03:00
Felipe Alfonso
741415877e
Per vertex color added to SpriteBatch
2017-01-23 11:58:58 -03:00
Felipe Alfonso
ba4b4b9892
Update SpriteBatch to work properly with Transform
2017-01-20 14:58:41 -03:00
Richard Davey
4ac4d406b2
Hooked up SpriteBatch.
2017-01-19 23:20:36 +00:00
Richard Davey
7d044d7f14
Updating game loop
2017-01-18 16:11:29 +00:00