Commit graph

103 commits

Author SHA1 Message Date
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
Richard Davey
6615e8b514 Tidied up the Particle Renderer. 2017-01-18 11:59:00 +00:00
Richard Davey
08d1d8b677 Testing Particle renderer. 2017-01-18 01:06:34 +00:00
Richard Davey
a03d1a571c Fixed renderer references. 2017-01-16 23:05:27 +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
Richard Davey
2809d80813 Working on the Canvas Renderer. 2017-01-12 21:28:40 +00:00
photonstorm
d557d13d25 Added in new Util functions, and fixed some left-over ES6 values. 2016-12-15 17:15:47 +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
c76c5741e7 Added in the new EventDispatch and Event system. 2016-12-05 15:29:44 +00:00
Richard Davey
1afa75d871 Updated Loader, added ArrayBuffer to Base64, added GetURL. You can now load a file on its own, without using a Loader instance at all. 2016-12-01 12:51:05 +00:00
photonstorm
34303f1df6 Added in the Update Manager, MainLoop and State Systems. 2016-11-29 15:25:14 +00:00
photonstorm
1bb711ea2c Now using the new GetObjectValue utility. 2016-11-29 13:01:05 +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
e041a51de5 Fixed missing output. 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