Commit graph

10132 commits

Author SHA1 Message Date
photonstorm
b255fea85f Time.advancedTiming is a new boolean property. If true Time.fps, fpsMin, fpsMax, frames, msMin and msMax will be calculated, otherwise they remain at their defaults. 2014-02-25 04:05:28 +00:00
Richard Davey
8fafb3de56 Merge pull request #470 from indiejones/1.2
Method expects body
2014-02-25 04:05:21 +00:00
photonstorm
8fb2f20482 Swapping between tabs will pause and resume tweens correctly, allowing their onComplete events to still fire (fixes #292) 2014-02-25 03:33:47 +00:00
photonstorm
cc06a62b90 Pausing the game will now mute audio and resuming will un-mute, unless it was muted via the game (fixes #439) 2014-02-25 03:12:12 +00:00
photonstorm
415342d986 Vastly improved visibility API support + pageshow/pagehide + focus/blur. Working across Chrome, IE, Firefox, iOS, Android (also fixes #161) 2014-02-25 02:59:24 +00:00
photonstorm
beaac18b8f Active animations now monitor if the game pauses, and resume normally when the game un-pauses (fixes #179) 2014-02-24 23:06:45 +00:00
photonstorm
a25f6dbc3b Physics.processRebound now takes Body direction into account, helps with body-body collision bounces (thanks ram64)
Fixed the Example / physics / mass velocity test.
Fixed readme typo.
2014-02-24 21:43:02 +00:00
Richard Davey
0ed1aedba7 Merge pull request #477 from JoeAnzalone/master
Fix "ste-up" typo
2014-02-24 21:28:23 +00:00
photonstorm
36df5516dd Fixed full-screen anti-alias issue (#478). 2014-02-24 20:33:22 +00:00
Joe Anzalone
bf8ee44d13 Fix "ste-up" typo 2014-02-24 11:08:18 -05:00
photonstorm
d9cadc70ac The Keyboard class has had a complete overhaul. Phaser.Key objects are created automatically, there are fixes against duration and keys reset properly on visibility loss.
Keyboard.removeKey has been removed. The way the new keyboard manager works means it's no longer required.
Fixes issue #462
2014-02-24 15:58:02 +00:00
photonstorm
9d9fd06392 Tidying up the repo, moving old wip stuff out, clearing up the docs. 2014-02-24 12:14:31 +00:00
photonstorm
46e85c8394 Updated version to 2.0.0 (fixes npm install issue #476) 2014-02-24 12:00:28 +00:00
photonstorm
de3583db80 Version 1.1.6 - "Shienar" - 24th February 2014
New Examples:

* Added lovely new little mini golf game by jpcloud.

Updates:

* Loader can now load JSON files natively (thanks lucas)
* TilemapParser now errors if the tileset isn't the right size

Bug Fixes:

* Updated Physics.Body.applyDamping so that velocity is reduced down to zero properly (thanks caezs)
* ArcadePhysics.collideSpriteVsTilemapLayer wouldn't call the process or collide callbacks if only 1 tile was involved in the check (thanks mandarinx)
* Lots of documentation fixes (thanks nhowell)
* Fix for PixiPatch so it renders masks again (thanks georgios)
* Modified ArcadePhysics.intersects so it returns a value as well as asigns (thanks bunnyhero)
* Lots of TypeScript defs fixes (thanks clark)
2014-02-24 01:32:20 +00:00
photonstorm
88f901249a Final 1.1.6 package files. 2014-02-24 01:29:32 +00:00
photonstorm
f4ff4d88fe 1.1.6 release. The final of the 1.1 branch. 2014-02-24 01:28:13 +00:00
photonstorm
e088d5c67f Documentation fix. 2014-02-24 00:35:11 +00:00
photonstorm
e37188d168 Phaser.Input.Key isUp now defaults to 'true' (#474) 2014-02-24 00:18:12 +00:00
Jonas Malm
276ef9c268 Method expects body
Fixes crash in map.generateCollisionData
2014-02-23 17:42:39 +01:00
photonstorm
a6d77d00a0 World gravity restored. 2014-02-23 11:42:24 +00:00
Richard Davey
94133e4c11 Updated Sound.play loop check 2014-02-22 03:05:41 +00:00
Richard Davey
b2da49eefa Enhanced page visibility checks added 2014-02-22 02:36:02 +00:00
Richard Davey
bd24dab2f6 Merge branch '1.2' of https://github.com/photonstorm/phaser into 1.2 2014-02-22 00:46:48 +00:00
photonstorm
e266ecfe00 Starting timer tests. 2014-02-22 00:17:41 +00:00
photonstorm
be4d42a1c2 The StateManager now looks for a function called 'resumed' which is called when a game un-pauses (fixes #358) 2014-02-22 00:01:19 +00:00
photonstorm
ea4873e286 SoundManager.play() does not do anything with destroyOnComplete (fix #333) 2014-02-21 23:55:11 +00:00
Richard Davey
37323562cd Merge pull request #469 from bburky/cdnjs-1.1.5
Update CDNJS link for 1.1.5
2014-02-21 23:43:28 +00:00
Blake Burkhart
f6cc40f025 Update CDNJS link for 1.1.5 2014-02-21 17:21:16 -06:00
photonstorm
57796a60be TileSprites can now receive full Input events, dragging, etc and be positioned in-world and fixed to cameras (fixes #321) 2014-02-21 19:21:00 +00:00
Richard Davey
ee1a1cd1c9 Merge pull request #468 from alvinsight/1.2
Examples updated :)
2014-02-21 18:59:34 +00:00
photonstorm
1448562abd Loader can now load JSON files specifically (game.load.json) and they are parsed and stored in the Game.Cache. Retrieve with game.cache.getJSON(key) (#329)
Also fixed UTF encoding on the animation file.
2014-02-21 18:48:06 +00:00
Richard Davey
529d210006 Merge pull request #329 from lucasmonteverde/dev
Custom JSON loader
2014-02-21 18:42:01 +00:00
alvinsight
b03c6231e1 And some more examples updated :) 2014-02-21 17:59:13 +00:00
alvinsight
2669f81391 Debug functions ? Seems last commit didn't work 2014-02-21 17:59:13 +00:00
alvinsight
2eab5d4815 Debug functions and more examples 2014-02-21 17:59:12 +00:00
alvinsight
7342ce603a Velocity is back on track :) 2014-02-21 17:59:11 +00:00
photonstorm
fb5920feec We now force IE11 into Canvas mode to avoid a Pixi bug with pre-multiplied alpha. Will remove once that is fixed, sorry, but it's better than no game at all, right? :(
Loader.setPreloadSprite() will now set sprite.visible = true once the crop has been applied. Should help avoid issues (#430) on super-slow connections.
2014-02-21 17:29:51 +00:00
Richard Davey
7b572b9b81 Merge pull request #377 from Malax/dev
Added a warning when the tile set image has not the expected dimensions.
2014-02-21 16:58:06 +00:00
photonstorm
5a00a0ad97 TilemapParser will now throw a warning if the tileset image isn't the right size for the tile dimensions (fixes #377) 2014-02-21 16:57:45 +00:00
photonstorm
3ac8fba9e8 Body.x/y didn't use pxpi. Also fixed out of bounds example. 2014-02-21 16:35:37 +00:00
Richard Davey
43bc0e72f1 Merge pull request #460 from nhowell/patch-2
Fix typo of Phaser.World#preUpdate for docs
2014-02-21 15:52:41 +00:00
photonstorm
5c4dd26d25 Fixed for renderSpriteInfo. 2014-02-21 15:50:02 +00:00
photonstorm
3ead8aee7b Updated Mouse to use event.button not event.which, so the const references are correct (fix #464) 2014-02-21 15:47:00 +00:00
photonstorm
e9e5bf9436 Updated docs - they now actually list the new body methods :) 2014-02-21 15:37:26 +00:00
photonstorm
7ee0c20bb3 Added Debug.renderSpriteBounds() back and wrapped Body.velocity and force in px2p calls. 2014-02-21 15:34:15 +00:00
photonstorm
d7ababa398 BitmapData.alphaMask will draw the given image onto a BitmapData using an image as an alpha mask. 2014-02-21 15:09:04 +00:00
photonstorm
07af06fc4e Fixing up documentation, missing functions, examples and alpha masks. 2014-02-21 14:50:18 +00:00
photonstorm
eb38ae35f8 renderXY added back into RenderTexture. 2014-02-21 13:44:39 +00:00
photonstorm
a61d030256 Display Objects now clean-up their children properly on destroy. 2014-02-21 13:25:08 +00:00
photonstorm
dd8a393bc9 Updated version of p2 2014-02-21 12:40:49 +00:00