Commit graph

6992 commits

Author SHA1 Message Date
Richard Davey
cc781c5ee2 Lots of updates to Impact physics system
New Sprite and Image handlers with helper methods.
Updated motion, world and new Factory class.
2017-08-15 23:38:35 +01:00
Richard Davey
8cf216a530 New PhysicsManager Scene system 2017-08-15 23:37:56 +01:00
Richard Davey
b769e2cb3d Removed game argument and added boot method 2017-08-15 23:37:38 +01:00
Richard Davey
1e6659b2ef Added physics to the injection map 2017-08-15 23:37:00 +01:00
Richard Davey
dd68b6a79b Added PhysicsManager and tidied things up 2017-08-15 23:36:46 +01:00
Richard Davey
13a240789f Removed all helper methods (moved to Components) and tidied up debug 2017-08-15 23:36:28 +01:00
Richard Davey
2d693a3af0 New Impact Body components 2017-08-15 23:36:00 +01:00
Richard Davey
7670ec50bb Derive game instance from Scene 2017-08-15 23:35:35 +01:00
Richard Davey
562eb4ab1a All GameObjects now have a physics body property (which is null by default) 2017-08-15 23:35:16 +01:00
Richard Davey
0a1e4e09cf Added physics game config getter 2017-08-15 23:34:39 +01:00
Felipe Alfonso
9856200fdf Added camera gameobject filtering 2017-08-15 16:42:04 -03:00
Felipe Alfonso
8fd14688b6 Fix when rendering more than the buffer limit 2017-08-14 23:36:41 -03:00
Felipe Alfonso
a536403cc7 Conflict fix 2017-08-14 23:04:02 -03:00
Felipe Alfonso
5f5ccd04b6 Lights work with camera zoom and also added support for light radius 2017-08-14 22:51:43 -03:00
photonstorm
7fe23d93be Split Forward and Deferred max counts up. 2017-08-14 15:57:49 +01:00
photonstorm
5a939da11e Renamed SetEventCallback to just SetCallback. 2017-08-14 15:57:15 +01:00
photonstorm
f23c68caa6 Blitter.create only uses default frame if none provided. 2017-08-14 13:13:27 +01:00
photonstorm
e5b1b939f5 Bob.destroy will now remove itself from its parent as it should. 2017-08-14 13:13:11 +01:00
photonstorm
6ac3806091 Default to single space if no text given to avoid WebGL texture errors. 2017-08-14 13:12:59 +01:00
photonstorm
8e19673f08 Added in setFrame method to all texture based Game Objects. 2017-08-14 13:12:45 +01:00
photonstorm
3a8c50fbe3 Finished TweenManager.shutdown and destroy. 2017-08-11 17:49:46 +01:00
photonstorm
d0651ee4b8 Added getAllTweens, getTweensOf, isTweening, killAll, killTweensOf, pauseAll and resumeAll to the Tween Manager. 2017-08-11 17:42:10 +01:00
photonstorm
56672007d0 Added Tween.stop. Stops the tween immediately, regardless of how far into its progress it has got. 2017-08-11 17:41:23 +01:00
photonstorm
1b1f249003 Added in Tween.timeScale for scaling the time used for a single Tween.
Added in TweenManager.globalTimeScale for scaling the time used by ALL tweens currently active.
2017-08-11 17:12:18 +01:00
photonstorm
5fe09c90a0 Shadow fill default should be true. 2017-08-11 16:59:29 +01:00
photonstorm
40952d633d You can now call this.add.tween and this.make.tween as proxies to the TweenManager.
Removed TweenManager local Events dispatcher.
2017-08-11 13:22:41 +01:00
photonstorm
d2e0f9e0bf Yoyo and Repeat now pass the target as the second argument.
Optimized tweenArray creation in the builder.
Added flipX and flipY tween controls.
2017-08-11 13:14:34 +01:00
Richard Davey
5b2ba6ccef Added all of the Tween callbacks.
onStart, onUpdate, onRepeat, onYoyo, onLoop and onComplete and tested them all.
2017-08-11 04:08:21 +01:00
Richard Davey
427d001c42 Added toggleFlipX and toggleFlipY methods 2017-08-11 04:06:37 +01:00
Richard Davey
5e065d0069 Merge pull request #3040 from jaminscript/patch-1
Add missing comma to Frame Rate Config
2017-08-10 05:27:33 +01:00
Richard Davey
b1471ff8d6 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-08-10 05:19:07 +01:00
Richard Davey
0d3b8df879 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-08-10 05:17:58 +01:00
Richard Davey
640dc69dd2 play returns the Sprite reference for proper chaining 2017-08-10 05:17:26 +01:00
Richard Davey
e206885be0 Alphabetical order 2017-08-10 05:17:13 +01:00
Richard Davey
ad4f102335 Added ability to load Unity meta data files for sprite sheets 2017-08-10 05:17:02 +01:00
Ben Abbott
aafb338be8 Add missing comma to Frame Rate Config
As I was experimenting with Phaser 3 I copied and pasted the example FPS config only to find it was missing a comma.
2017-08-10 14:44:26 +12:00
Felipe Alfonso
0b282aeba1 Light layer hardcoded max light count removed 2017-08-09 20:33:54 -04:00
Felipe Alfonso
679bbefff8 Deferred renderer added to Light Layer 2017-08-09 19:36:48 -04:00
photonstorm
2955df2f4f isPlaying method. 2017-08-09 17:24:03 +01:00
photonstorm
2be710c56d Added comments 2017-08-09 17:23:53 +01:00
photonstorm
92b05226ca loop is numeric, not boolean. 2017-08-09 17:23:39 +01:00
photonstorm
80fc2e9820 Tweens don't update if paused. 2017-08-09 17:23:23 +01:00
photonstorm
2ddafdd0b5 Moved out of core and fixed Point path. 2017-08-08 17:16:23 +01:00
Felipe Alfonso
0943f5bf8f fixed issue with light layer and other rendering elements. Also added depth sorting property to light layer 2017-08-07 18:16:05 -04:00
photonstorm
b21baeb0b4 JSHint fix + added url. 2017-08-07 17:14:39 +01:00
photonstorm
e19e9758f5 Fixed issue with UpdateList trying to destroy items it manages. 2017-08-07 17:14:13 +01:00
photonstorm
e96fe93b12 Fix #3039 2017-08-07 15:44:58 +01:00
Felipe Alfonso
121b5c62f3 Light Scroll Factor 2017-08-04 16:09:25 -04:00
photonstorm
b8df529ff1 Updated Loader and all single-file file types to support multiple load methods. Will now work with argument based loader, a configuration object or an array of objects, per all file types. Moved lots of code out of the Loader plugin and into BaseLoader and the FileType files. 2017-08-04 18:43:05 +01:00
photonstorm
dec57e2915 Extended ImageFile to support setting from a config object or array of objects. 2017-08-04 16:15:00 +01:00