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
b6b7715021
Mouse Input Handler working. Demo created.
2017-06-13 00:38:48 +01:00
photonstorm
cf74a7dd81
Config.pixelArt setting applied to CanvasPool.
2017-06-08 15:05:07 +01:00
photonstorm
74e4357bcd
Added rawDelta property to TimeStep and made sure the time value passed to update is the non-smoothed version.
2017-06-08 13:40:12 +01: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
253dc76081
Added delta history cool down period to avoid spikes flooding the values.
2017-05-09 10:42:43 +01:00
Richard Davey
21882a24ec
Added Page Visibility handler and hooked into TimeStep.
2017-05-09 01:24:46 +01:00
photonstorm
e9eefa6314
TS updates.
2017-05-04 17:32:05 +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
Richard Davey
9eb1676482
Seed history properly and dt clamp.
2017-05-03 02:21:32 +01:00
Richard Davey
e5b82eb9b9
Fixed delta spike handling.
2017-05-03 01:34:29 +01:00
Richard Davey
02a06bc7e3
Moved the Animation functions into the components folder where they are a better fit.
2017-05-03 00:54:09 +01:00
photonstorm
17d6667c63
Swapped to perf.now.
2017-04-28 03:15:08 +01:00
photonstorm
54442c59d4
Forcing Variable Timer for further testing.
2017-04-28 03:15:02 +01:00
photonstorm
119ae11736
Using perf.now and tidying it all up.
2017-04-28 03:14:30 +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
photonstorm
d2fa3779f4
Working on the new TickerLoop.
2017-04-26 17:13:56 +01:00
photonstorm
8264351f75
Renamed GetObjectValue to GetValue and replaced through-out entire codebase. More consistent now with GetAdvancedValue, etc.
2017-04-26 16:03:22 +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
93d7ed30fc
Saved some space by using pngPrefix.
2017-03-28 23:56:00 +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
a9f674bc92
Added preserveDrawingBuffer config
2017-02-13 12:08:30 +00:00
Richard Davey
2f2d8d694f
Final few Color functions. Game Config now uses Color object for Background Color.
2017-02-11 08:18:22 +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
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
Richard Davey
b0623b91b9
Added clearBeforeRender.
2017-02-07 18:44:35 +00:00
Richard Davey
6626870fcf
Adding DEFAULT and MISSING images to Game Config and the Texture Manager.
2017-02-07 12:43:20 +00:00
Richard Davey
263385b1e2
Added in zoom and pixelArt support to the game config.
2017-02-04 18:02:31 +00:00
Richard Davey
7999f72d81
Moved GetObjectValue into utils/object
2017-02-04 05:39:37 +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
photonstorm
5f2d4473f3
Seed the RNG from Config.
2017-01-25 12:01:52 +00:00
Richard Davey
4ac4d406b2
Hooked up SpriteBatch.
2017-01-19 23:20:36 +00:00
Richard Davey
ddc92f284e
Removed Particle Renderer
2017-01-18 23:16:57 +00:00