Commit graph

4513 commits

Author SHA1 Message Date
cuixiping
a4c4c643f4 Merge pull request #1 from photonstorm/dev
update to official
2015-04-04 16:09:13 +08:00
photonstorm
36c064511c Added guards around context.getImageData calls in BitmapData, Text and Canvas Tinting classes to avoid crashing restricted browsers like Epic Browser. Please understand that several Phaser features won't work correctly with this browser (thanks @Erik3000 #1714) 2015-04-02 14:47:44 +01:00
Richard Davey
ef5c0d89de Merge pull request #1711 from AyogoHealth/definitions-fix
Fix some errors in the definitions files for Phaser.Group
2015-04-02 01:21:02 +01:00
Ian Suda
0d4bce2101 Fix some errors in the definitions files for Phaser.Group 2015-04-01 15:35:08 -07:00
Richard Davey
76e1c57570 Merge pull request #1710 from hardalias/bugfix/tween_dividebyzero
Fixes neverending tween when duration set to zero (caused by division with zero)
2015-04-01 16:16:18 +01:00
hardalias
4bd7a40e84 Fixes neverending tween when duration set to zero
* Passing a value of zero as the value of duration causes the
 calculations performed in Tween#update to divide by zero when
 calculating the next step for the tween. This causes the tweened
 property value to be set to NaN having undesireable results and
 also, causes the tween to never end since the ending criteria are
 never met.
2015-04-01 15:01:05 +03:00
photonstorm
645723f939 Sprite was missing the Health and InCamera components. 2015-03-30 13:51:47 +01:00
photonstorm
5fb1130175 The LoadTexture component has had a redundant dirty call removed from it.
TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma #1702)
2015-03-28 00:56:02 +00:00
photonstorm
57474c0d44 Trying out removal of dirty flag. 2015-03-27 10:47:45 +00:00
photonstorm
67039df214 jsdoc fixes. 2015-03-27 10:47:25 +00:00
photonstorm
49be59b0c9 Added missing resumed method to Phaser.State class template. 2015-03-26 10:54:32 +00:00
photonstorm
413c81e034 Preparing for 2.3.1 development. 2015-03-26 04:01:37 +00:00
photonstorm
63c9d2e880 Phaser 2.3.0 Release 2015-03-26 03:27:34 +00:00
photonstorm
f23ab1f3a9 TypeScript defs with comments update. 2015-03-26 02:59:11 +00:00
photonstorm
d7c0a907f9 Small grunt fix. 2015-03-26 02:58:47 +00:00
photonstorm
e33455e34f 2.3.0 API Docs 2015-03-26 02:55:18 +00:00
photonstorm
cf4e213056 New API Docs. 2015-03-26 02:38:46 +00:00
photonstorm
8233b0a079 Phaser 2.3.0. 2015-03-26 02:37:31 +00:00
photonstorm
d4e838592c Readme tweaks. 2015-03-26 02:22:05 +00:00
photonstorm
bd62459a56 Readme release changes. 2015-03-26 02:10:57 +00:00
photonstorm
eb235197e9 Phaser 2.3 Release Candidate 3. 2015-03-25 16:17:53 +00:00
photonstorm
79ace60997 Added guard around the xhr onload try / catch block, so it doesn't incorrectly report errors as being from the Loader when they may have been throw by the create method. 2015-03-25 16:13:52 +00:00
photonstorm
c1366c2f4f Arc comment. 2015-03-25 16:13:21 +00:00
photonstorm
93dc67be71 Graphics.drawArc would fail to draw any subsequent arcs if you set beginFill on it after drawing the first arc.
Graphics.drawArc would only move to the center position of the first arc created and ignore any subsequent arcs.
Graphics.drawArc now correctly renders multiple arcs across both WebGL and Canvas. You no longer need to specifically call moveTo to move into the correct place to draw the arc.
Graphics.drawArc now bails out if the startAngle = the endAngle and/or the sweep is invalid *before* adjusting any points.
Graphics.drawArc now correctly handles the fill on the CanvasRenderer if the arc is a subsequent arc and no line style is set.
2015-03-25 13:00:08 +00:00
photonstorm
d45a7bae8e Fixed constructor. 2015-03-25 12:59:41 +00:00
photonstorm
e7400be625 Formatting updates. 2015-03-25 12:59:31 +00:00
photonstorm
b1cdb358bb Merging in fixes from Pixi 3. 2015-03-25 11:04:58 +00:00
photonstorm
17b2eafbf3 Split GraphicsData to its own file. 2015-03-25 11:04:48 +00:00
photonstorm
93ed950f89 Small geom tidy-up. 2015-03-25 11:04:31 +00:00
photonstorm
f4d55b7785 When an Emitter is destroyed via Emitter.destroy it now removes itself from the Phaser Particle Manager, freeing it up for garbage collection and stopping it from being processed. 2015-03-25 05:07:39 +00:00
photonstorm
aa13ec0165 Animation.play wouldn't correctly set the play state on the Game Objects AnimationManager causing the animation to fail to start (calling AnimationManager.play did work however), now they're both consistently working. 2015-03-25 03:59:36 +00:00
photonstorm
244372384e When an Animation completes playback and isn't set to loop it would change the currentFrame property to be the first frame in the set after the onComplete callback had fired. This meant if you set a Sprite to a new frame within an Animation onComplete callback then your change would have been overwritten by the animation itself. This is now no longer the case. 2015-03-24 23:17:13 +00:00
Richard Davey
dc82fe60f2 Merge pull request #1695 from clark-stevenson/dev
Minor Updates RC1
2015-03-24 21:53:06 +00:00
Clark Stevenson
bbbb003522 Merge remote-tracking branch 'clark/dev' into dev 2015-03-24 21:38:57 +00:00
Clark Stevenson
e5dc470a59 Updated TypeScript Readme to recommend TypeScript 1.4, and removed webgl.d.ts for that reason. 2015-03-24 21:38:36 +00:00
Clark Stevenson
421ed4a715 Phaser Minor Changes for 2.3.0 RC1 Review 2015-03-24 21:38:30 +00:00
Clark Stevenson
cb8a7c467e Pixi Minor change for 2.2.8 2015-03-24 21:38:24 +00:00
photonstorm
d80ec1ae6d Phaser 2.3 Release Candidate 2. 2015-03-24 21:35:23 +00:00
photonstorm
83adc51698 Fixed the FixedToCamera :) 2015-03-24 21:35:09 +00:00
Clark Stevenson
3f47f8a3c8 Updated TypeScript Readme to recommend TypeScript 1.4, and removed webgl.d.ts for that reason. 2015-03-24 21:31:27 +00:00
Clark Stevenson
c299213994 Phaser Minor Changes for 2.3.0 RC1 Review 2015-03-24 21:28:24 +00:00
Clark Stevenson
700894246f Pixi Minor change for 2.2.8 2015-03-24 21:27:20 +00:00
photonstorm
c4b83a1394 Phaser 2.3 Release Candidate 1. 2015-03-24 16:05:52 +00:00
photonstorm
06b484e71c Huge docs update. 2015-03-24 16:01:07 +00:00
photonstorm
96e313e768 If you paused a Sound object that is using audio markers and then resumed it, it wouldn't correctly calculate the resume duration - causing the sound to sometimes play into the marker that followed it (thanks @AnderbergE #1669) 2015-03-24 14:43:35 +00:00
Richard Davey
483bb240a6 Merge pull request #1694 from englercj/dev
Minor typescript def file update
2015-03-24 14:39:14 +00:00
Chad Engler
ce254e540e minor typescript def file update 2015-03-24 07:06:14 -07:00
photonstorm
7e19f45350 When the Game first boots it will now call window.focus(). This allows keyboard events to work properly in IE when the game is running inside an iframe. You can stop this from happening by setting window.PhaserGlobal.stopFocus = true (thanks @webholics #1681) 2015-03-24 13:27:27 +00:00
photonstorm
ebdb6d028f The Physics Manager now has a new reset method which will reset the active physics systems. This is called automatically on a State swap (thanks @englercj #1691) 2015-03-24 10:21:12 +00:00
photonstorm
7aa4d0ad0d When a State is started and linked to Phaser it has a new property created on it: key, which is the string identifier used by the State. 2015-03-24 10:21:03 +00:00