photonstorm
c6a2edd855
Refactored Input Manager as it was getting too large for a single file class. Split up into Scene and Global Managers, broke all functions off into single files and started work on the new multi-pointer flow.
2017-07-20 17:10:12 +01:00
photonstorm
0589effa22
Added onStepCallback to Game step.
2017-07-20 11:34:01 +01:00
photonstorm
d804e056ed
Renaming from State to Scene internally.
...
This is one monster update.
2017-07-14 14:50:51 +01:00
Richard Davey
f770712c2a
Huge refactoring of States, plugins and object factories
2017-07-04 01:59:31 +01:00
photonstorm
e119e3a3fc
Huge update to move all classes to common Phaser Class format. Tidying up lots. Removing un-needed files.
2017-06-30 15:47:51 +01:00
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
8952c1d578
Moved constructors
2017-06-28 17:17:31 +01:00
Chen Fang
765900de87
fix Game.prototype.constructor
2017-06-26 18:20:03 -07:00
Richard Davey
2a19a02d0b
Added window focus and blur handler to catch raf throttling outside of page visibility changes.
2017-05-09 15:39:30 +01:00
Richard Davey
21882a24ec
Added Page Visibility handler and hooked into TimeStep.
2017-05-09 01:24:46 +01:00
Richard Davey
54f95a3cff
Removed old timesteps and renamed Variable to TimeStep.
2017-05-04 01:08:50 +01:00
photonstorm
9ee41603a2
Exposed game loop settings via game config object.
2017-05-03 17:07:15 +01:00
photonstorm
54442c59d4
Forcing Variable Timer for further testing.
2017-04-28 03:15:02 +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
ee5e4f5195
Tidied up the Animation folder.
...
Animation Manager now in its own folder, with all methods split out to their own files.
Animation Components moved to components folder.
AnimationFrame renamed to Frame and moved inside the frame folder, as it's frame specific.
2017-04-12 13:53:55 +01:00
Richard Davey
05bbfd9bd8
Animation Manager boot state call.
2017-04-04 23:58:45 +01:00
Richard Davey
657ea7ffa7
AM start
2017-03-22 12:38:33 +00:00
Richard Davey
9579263333
New Input Manager and Keyboard handler in and working.
2017-02-21 01:04:37 +00: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
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
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
98a6d282ba
Registry added.
2017-01-30 00:00:45 +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
Richard Davey
4ac4d406b2
Hooked up SpriteBatch.
2017-01-19 23:20:36 +00:00
Richard Davey
9235d6fe58
Lots of Canvas Renderer fixes.
...
Merged CONST with Phaser export.
Fixed GetObjectValue check.
Added drawImage data to Frame.
2017-01-16 22:44:02 +00:00
photonstorm
6585297fbf
Lots of Math component exports added.
...
Restructured Phaser export file, finally removing it out of the Boot folder.
Fixed several broken math functions.
2016-12-13 16:12:25 +00:00
Richard Davey
cee7498180
Fixes to get the renderer working.
2016-12-07 03:42:41 +00:00
Richard Davey
14ee4c2d1b
Added Camera and fixed path issues.
2016-12-07 02:40:07 +00:00
Richard Davey
82d1ceeba4
Adding in WebGL Renderer.
2016-12-07 02:28:22 +00:00
photonstorm
b3e4c349d2
Getting ready to hook the Loader to the Texture Manager.
2016-12-06 16:49:29 +00:00
photonstorm
34303f1df6
Added in the Update Manager, MainLoop and State Systems.
2016-11-29 15:25:14 +00:00
photonstorm
1db02f3d3a
Added CreateRenderer function.
2016-11-29 11:26:30 +00:00
photonstorm
28db9a2550
Lots of work on the Game Object Factory patterns.
2016-11-29 10:46:35 +00:00
photonstorm
e83bd3d544
Added NOOP.
...
Added Config pre and post boot callbacks.
Added Image and start of the Game Factory rebuild.
2016-11-28 16:55:25 +00:00
Richard Davey
14d2c6a8ae
Updated CanvasPool to store the type (2d or webgl), so it doesn't give incorrect canvases back out again. Updated Features to use proper canvases when feature testing. Added Interpolation code. Cached the Smoothing prefix.
2016-11-26 02:32:59 +00:00
Richard Davey
e45096611e
Converted the Device and CanvasPool into page level singletons, that can be shared by all instances of a Phaser Game running in the same page.
2016-11-26 01:28:53 +00:00
Richard Davey
1d4cdbd56a
Added and refactored the Random Data Generator. Working nicely, removed some redundant apply calls, and made the private vars properly private.
2016-11-25 05:12:02 +00:00
Richard Davey
45002461db
Added in final Device tests.
2016-11-25 04:33:48 +00:00
Richard Davey
5ca567c7e0
Adding more Device tests.
2016-11-25 04:00:15 +00:00
Richard Davey
36ca61dddb
Added in the final DOM level functions.
2016-11-25 02:08:33 +00:00
Richard Davey
970dea20f5
Added checksum ability to build process.
...
Fixed RequestAnimationFrame.
2016-11-25 01:37:14 +00:00
Richard Davey
96c7446b1e
Added RAF
2016-11-25 00:34:37 +00:00
photonstorm
247a837961
Game update.
2016-11-24 17:01:58 +00:00
photonstorm
7883a7d305
Added more options to Config class.
2016-11-24 15:40:05 +00:00
Richard Davey
13f49f6086
Added webpack shell script to copy build file to examples.
2016-11-24 01:35:07 +00:00
Richard Davey
c298a45d1f
Updated folder paths and the 2.7 README.
2016-11-23 00:17:46 +00:00