Commit graph

4025 commits

Author SHA1 Message Date
Clark Stevenson
c2c3306449 Merge branch 'dev' of https://github.com/photonstorm/phaser into dev 2015-04-08 19:10:57 +01:00
photonstorm
482806b4b1 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-08 19:09:48 +01:00
Ian Suda
dc5dd8276f Fix some errors in the definitions files for Phaser.Group 2015-04-08 19:09:38 +01:00
hardalias
7ec3d01b2b 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-08 19:09:29 +01:00
photonstorm
dbd696ed33 Sprite was missing the Health and InCamera components. 2015-04-08 19:09:20 +01:00
photonstorm
bd9380c4c9 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-04-08 19:09:10 +01:00
photonstorm
3d704baec4 Trying out removal of dirty flag. 2015-04-08 19:09:01 +01:00
photonstorm
0e6670a06f jsdoc fixes. 2015-04-08 19:08:51 +01:00
photonstorm
ccbc8ab08b Added missing resumed method to Phaser.State class template. 2015-04-08 19:08:42 +01:00
photonstorm
5a6117bf79 Preparing for 2.3.1 development. 2015-04-08 19:08:33 +01:00
David Goemans
73bace335a Built a fix into p2.js v0.6.1 for using requirejs with phaser. This has also been put as a pull request to p2.js 2015-04-06 12:43:03 +02:00
Alan Smithee
d2e3a69525 Adds nonNull parameter to Tilemap.getTileWorldXY
Since Tilemap.getTile lets you specify wether to return null
or an empty tile when index is -1, the WorldXY equivalent
should offer the same possibility for a more unified interface.
2015-04-06 10:08:37 +00:00
Alan Smithee
c2bf1ef550 Merge branch 'dev' of github.com:GGAlanSmithee/phaser into dev 2015-04-06 10:03:49 +00:00
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