Commit graph

4092 commits

Author SHA1 Message Date
photonstorm
7a6de818e1 Updated Grunt build scripts so that all third party libs (such as Creature, P2, gl-matrix and PIXI) are now kept well and truly outside of Phaser. They are defined and placed first in the build files. So no more PIXI hiding within the Phaser namespace or UMD patching for Phaser required. 2015-07-23 16:00:45 +01:00
photonstorm
7967d32d52 Creature update. 2015-07-23 13:25:08 +01:00
photonstorm
9a83ddcab9 Updated to latest Creature runtimes, added to GameObjectFactory. 2015-07-23 13:25:08 +01:00
photonstorm
94ae9e097e Phaser 2.4.0a release - includes build file fixes for missing PIXI classes like TilingSprite. 2015-07-23 13:25:08 +01:00
photonstorm
4c97129916 Updating 2015-07-23 13:25:08 +01:00
Richard Davey
cd06c61b4a Merge pull request #1929 from jamesgroat/getkeys-cachemap
Fix cache.GetKeys() - Use _cacheMap to map from constant to _cache.
2015-07-23 11:45:39 +01:00
jamesgroat
10587e07ee Use _cacheMap to map from constant to _cache. 2015-07-22 16:53:07 -07:00
Alexander
dfe11ff7ea Add missing renderTabLine return type. 2015-07-23 00:57:14 +03:00
Richard Davey
4ef1fc5a26 Phaser 2.4.0a release - includes build file fixes for missing PIXI classes like TilingSprite. 2015-07-22 21:12:15 +01:00
Richard Davey
1e6f83dbd3 Preparing for 2.4.1 development. 2015-07-22 17:26:12 +01:00
photonstorm
858ad51610 Phaser 2.4 release. 2015-07-22 15:31:30 +01:00
photonstorm
ffaa7d711f Removed BaseTextureCache requirement from BitmapData.
Fixed jshint.
Updated TS defs.
2015-07-22 13:23:40 +01:00
photonstorm
8eb34f96ce WebGL context loss and restoration is now handled directly by Phaser.
Cache.clearGLTextures empties out all of the GL Textures from Images stored in the cache. This is called automatically when the WebGL context is lost and then restored.
2015-07-22 12:59:32 +01:00
photonstorm
000afb74a2 Split out rope and tilesprite as custom tasks. 2015-07-22 12:44:03 +01:00
photonstorm
915a757f96 Text.updateText will now check the width and height values of the Text canvas and if either are zero it sets Text.renderable = false to avoid throwing WebGL texture binding errors. 2015-07-22 12:43:43 +01:00
photonstorm
f28bc82fe3 Fixed packfiles undefined path error. 2015-07-22 10:53:15 +01:00
photonstorm
f15fe6706c All undefined argument checks were changed from if (typeof x === 'undefined') to if (x === undefined) removing the typeof check and saving some bytes across the codebase in the process. 2015-07-22 10:37:15 +01:00
Richard Davey
9e38bf974a World.stateChange is a new method that is called whenever the state changes or restarts. It resets the world x/y coordinates back to zero and then resets the Camera.
Sprites with Arcade Physics bodies that had `collideWorldBounds` enabled would be moved to the wrong position if you restarted a State (or swapped to a new State) that reset the world bounds (thanks @vulvulune #1775)
2015-07-22 01:24:26 +01:00
Richard Davey
356864ff8a TweenData.update now uses the Time.elapsedMS value for its delta calculation, instead of the physicsStep - this is because tweens are inherently time duration based and on a lagging system they were not properly completing when they should do (also addresses #1819) 2015-07-22 00:09:06 +01:00
Richard Davey
b906463189 Internally the Time class has been updated to split out the RAF and SetTimeout implementations. This cuts down the update loop workload significantly, which was causing a performance optimization bottleneck in V8. 2015-07-21 21:41:26 +01:00
Richard Davey
39cf0fb6ef Merge pull request #1924 from mkristo/dev
Webpack boilerplate
2015-07-21 20:37:48 +01:00
Markus Kristo
5a4c41c914 Merge branch 'dev' of https://github.com/photonstorm/phaser into dev 2015-07-21 19:41:35 +02:00
Markus Kristo
043f6f18ce Add webpack boilerplate build folder to git 2015-07-21 19:33:54 +02:00
Markus Kristo
340635370b Webpack boilerplate 2015-07-21 19:32:21 +02:00
photonstorm
05914d3a95 Preparing readme for release. 2015-07-21 17:07:40 +01:00
Richard Davey
fc1e0de790 Merge pull request #1923 from mkristo/pixi-patch
Make PIXI available for Phaser when using require
2015-07-21 16:14:09 +01:00
photonstorm
b9d425172d Allow process global. 2015-07-21 15:20:33 +01:00
photonstorm
ee59425be3 RC3 2015-07-21 15:19:26 +01:00
Richard Davey
c6534a56b6 Merge pull request #1922 from mkristo/process-patch
Fix reference error for process
2015-07-21 14:21:12 +01:00
photonstorm
7144b10ad5 TileSprites fixed for WebGL. 2015-07-21 13:24:12 +01:00
Markus Kristo
da6d7a58e3 Fix reference error for process
process was defined, while window.process wasn't.
2015-07-21 13:53:18 +02:00
Markus Kristo
b47f233b15 Fix reference error for process
process was defined, while window.process wasn't.
2015-07-21 11:04:54 +02:00
Markus Kristo
17c0768521 Add PIXI to the Phaser namespace
Hackish solution to make it possible to access PIXI directly from a game.
2015-07-21 11:00:30 +02:00
Markus Kristo
6d742155bf Make sure PIXI is available when using require for phaser builds
This is a hackish solution, and would not be needed if Phaser used require and a JS bundler like webpack
2015-07-21 10:55:54 +02:00
Richard Davey
cab0f93656 Merge pull request #1920 from clark-stevenson/dev
Mostly Additions based on Components.
2015-07-20 22:53:29 +01:00
Clark Stevenson
10366210cf Mostly Additions based on Components. 2015-07-20 21:38:50 +01:00
photonstorm
92486f85d9 Removed console.log. 2015-07-20 14:01:45 +01:00
photonstorm
cf74eaa396 MSPointer now checks the pointerType property of the DOM event and if it matches 'mouse' it will update Input.mousePointer, rather than Input.pointer1 (or whatever the next free Pointer was). 2015-07-20 14:01:21 +01:00
photonstorm
7ffbeb8a2a Added Mouse consts back in (#1903) 2015-07-20 12:38:41 +01:00
photonstorm
bb6c5bbbdc Key added to TextureAtlas and SpriteSheet, fixing the 'undefined' key error in LoadTexture. 2015-07-20 12:00:37 +01:00
photonstorm
b6ad27ed24 Phaser 2.4 RC2. 2015-07-17 17:51:05 +01:00
photonstorm
b470601faf Tidying up docs. 2015-07-17 17:50:53 +01:00
photonstorm
c2812a7b5c jshint fixes and renamed float to padFloat. 2015-07-17 14:11:11 +01:00
photonstorm
5d0788b47d Consolidated all Pointer buttons into the new DeviceButton class. 2015-07-17 13:52:09 +01:00
photonstorm
32ea5bee03 Fixes #1916 - but am now working on the DeviceButton class to tidy it all up. 2015-07-17 12:24:08 +01:00
Richard Davey
ad5b5fead6 Merge pull request #1915 from clark-stevenson/dev
Update Definition File
2015-07-17 11:47:50 +01:00
Clark Stevenson
8221883c99 Update Definition File 2015-07-17 01:08:45 +01:00
photonstorm
45944d689c Fix for #1914 2015-07-16 22:45:25 +01:00
photonstorm
a7f17394a4 Readme Update. 2015-07-16 16:40:12 +01:00
Richard Davey
6531552b32 Merge pull request #1905 from standardgaussian/aabbninja
AABB vs. AABB collision in Ninja
2015-07-16 15:45:09 +01:00