Commit graph

103 commits

Author SHA1 Message Date
Pavle Goloskokovic
0fe8757054 moved create method meant for instantiating global sound manager object form BaseSoundManager class to dedicated SoundManagerCreator class
moved setting local game reference from WebAudioSoundManager class to BaseSoundManager class constructor
fixed bug with audio context creation condition in WebAudioSoundManager class
2017-11-10 19:05:26 +01:00
Pavle Goloskokovic
24dfdb1e54 renamed SoundManager class to BaseSoundManager 2017-11-10 13:05:29 +01:00
Pavle Goloskokovic
9300fd3b7c added sound property representing SoundManager instance to Game class 2017-11-09 14:41:23 +01:00
Richard Davey
c9aefdaca1 Updated folder to match the namespace. 2017-10-13 11:38:34 +01:00
Richard Davey
8cf60b4c3e Tidying-up the namespace. 2017-10-11 17:06:13 +01:00
Richard Davey
bb97421214 Adding in method and property docs 2017-10-04 23:48:16 +01:00
Richard Davey
ae45affc9f More JSDocs work - this time to massive game config! 2017-10-04 19:59:08 +01:00
Igor Petushkov
267cb95c6b Move loading __DEFAULT and __MISSING images to boot function. 2017-09-16 23:07:42 +03:00
Richard Davey
56bc4d1547 Using MATH_CONST properly to avoid entire library import. Swapping to removing all index.js listings to avoid globbing. 2017-09-13 17:09:16 +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
405cef0146 Gamepads are disabled by default (saves calling the update if you aren't using them) 2017-09-13 14:18:34 +01:00
Richard Davey
f98bbc12d8 Added the new Gamepad Input classes 2017-09-09 03:17:13 +01:00
Richard Davey
665b295c3b Restructured the Scene folder and moved the plugins and components around
Also updated the physicsManager to make it a lot more cleaner and easy to adjust in future
2017-08-18 01:42:14 +01:00
Richard Davey
0a1e4e09cf Added physics game config getter 2017-08-15 23:34:39 +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
photonstorm
52bb355429 Removing old and incorrect jsdoc blocks ready for first documentation pass. 2017-08-01 13:10:08 +01:00
photonstorm
8234d6ac1f Fixed Nan TimeStep errors. 2017-07-31 17:05:47 +01:00
photonstorm
41b9e7d655 Delta history populated with _target value. resetDelta uses smaller value (target or previous dt). Step only resets dt if > target. 2017-07-31 11:49:18 +01:00
photonstorm
38171795f5 Maximum FPS rate removed from TimeStep. When the delta resets it now resets to zero. Target FPS used as limiter during recovery from browser raf idle period. 2017-07-28 15:53:28 +01:00
photonstorm
9e10fca98d Added Touch support. Doesn't handle multi-touch yet, but single touch works perfectly with all current input tests. 2017-07-28 03:28:10 +01:00
Richard Davey
87edd6cb94 Added option to disable context menu
Added to both the game config and as a function in the Mouse Manager.
2017-07-25 12:33:37 +01:00
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
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