Richard Davey
1d2d707b32
Merge pull request #2168 from nlotz/dev
...
fix typos in API docs
2016-02-01 19:01:58 +02:00
Richard Davey
13cf12d08a
Merge pull request #2297 from nexiuhm/master
...
loadUpdate() now gets a last update when loading is complete.
2016-02-01 18:20:19 +02:00
Richard Davey
8795792047
Merge pull request #2289 from staff0rd/grammar_fix
...
fixed grammar on update() comment
2016-02-01 18:18:05 +02:00
nexiuhm
bc00f924a7
Added a check to avoid calling the function when doing dynamic loading after state is created.
2016-01-14 17:23:52 +01:00
nexiuhm
1c65c48341
onLoadUpdate now recives the last ( 100 ) update.
2016-01-14 17:09:41 +01:00
zeterain
9edec8da57
Update documentation in ScaleManager.js
...
Documentation for ScaleManager.compatibility mis-spelled the supportsFullScreen property.
2016-01-11 09:02:07 -07:00
Stafford Williams
16517cc773
fixed grammar on update() comment
2016-01-08 20:29:58 +11:00
photonstorm
83948f5882
Updated Filter docs ( #2223 )
2015-11-20 17:01:05 +00:00
nlotz
da45d04a70
fix typos in API docs
2015-10-27 09:10:14 +01:00
Richard Davey
e6aa9f83c9
Typo fix.
2015-10-19 23:18:23 +01:00
photonstorm
8e4dc1f078
ScaleManager.getParentBounds now checks if parentNode
has an offsetParent
before calling getBoundingClientRect
on it (thanks @McFarts #2134 )
2015-10-13 12:04:57 +01:00
photonstorm
c79a341c58
Fixed jshint errors.
2015-10-12 12:23:48 +01:00
photonstorm
e01a754732
Removed the FrameDebugger and moved to its own branch.
2015-10-12 11:10:37 +01:00
Richard Davey
3d5fac1817
Merge pull request #2111 from jdnichollsc/master
...
Takes any transforms into account to get the correct parent bounds
2015-10-06 19:08:02 +03:00
photonstorm
9013107fd1
The ScaleManager no longer creates a Phaser.FlexGrid if the class isn't available (i.e. excluded via a custom build)
2015-09-30 11:20:00 +01:00
photonstorm
6fd2b6a7ec
Phaser.Create no longer automatically creates a BitmapData object when it starts. It now only does it when you first make a texture or grid.
2015-09-30 11:18:53 +01:00
Juan David Nicholls Cardona
8ce70cbeb4
Takes any transforms into account to get the correct parent bounds
2015-09-25 15:42:29 -05:00
Richard Davey
cffc90ebbc
Merge pull request #2107 from JackMorganNZ/master
...
Corrected spelling: 'mainted' to 'maintained'
2015-09-23 11:21:21 +03:00
Jack Morgan
589b9b8edd
Corrected spelling: 'mainted' to 'maintained'
2015-09-23 12:03:54 +12:00
Richard Davey
d86d01bd25
Camera.setBoundsToWorld only adjusts the bounds if it exists (thanks @prudolfs #2099 )
2015-09-20 21:07:28 +01:00
photonstorm
b011146a87
Fixed lint errors.
2015-09-16 13:55:33 +01:00
photonstorm
e64f9647db
Better output. Need to fix jshint errors next.
2015-09-16 13:36:53 +01:00
photonstorm
09e8d465e4
Lots more work on the FrameDebugger. Just need texture preview and then can test it properly.
2015-09-16 13:17:06 +01:00
Richard Davey
61edd1b458
FrameDebugger can now handle Text and BitmapText.
2015-09-16 03:18:15 +01:00
Richard Davey
b89f6dd3b4
Much improved final output and logging process.
2015-09-16 02:25:57 +01:00
Richard Davey
29b4bb3174
:)
2015-09-16 02:25:40 +01:00
photonstorm
3be0ed8849
FrameDebugger now hooked into Canvas Renderer. Better output coming.
2015-09-15 16:14:14 +01:00
photonstorm
4125e42a06
Sorted out setting the Stage backgroundColor. Much more concise now.
2015-09-15 13:34:07 +01:00
photonstorm
ff254ec33b
Added clearBeforeRender boolean.
2015-09-15 12:53:44 +01:00
photonstorm
0ee95b22d6
Fixed rogue comma.
2015-09-15 12:53:44 +01:00
photonstorm
b99c9e22ec
Removed PIXI.Stage. Phaser.Stage now handles everything it needs to do.
2015-09-15 12:53:44 +01:00
photonstorm
705cacf2ca
Sorting out the Stage background color assignment so we can drop a boolean check in the render method.
2015-09-15 12:53:43 +01:00
photonstorm
5a1a918a5d
Added FrameDebugger.
...
Tidying up the renderer constructors.
2015-09-15 12:53:43 +01:00
photonstorm
06ed961e81
Added FrameDebugger into the mix.
2015-09-15 12:53:43 +01:00
photonstorm
8db23545da
jsdoc updates.
2015-09-10 15:57:55 +01:00
photonstorm
90a500ec1e
Game.update could call updateLogic
multiple times in a single frame when catching up with slow device frame rates. This would cause Tweens to advance at twice the speed they should have done (thanks @mkristo)
...
Time.desiredFpsMult is a pre-calculated multiplier used in Game.update.
Time.refresh updates the `Time.time` and `Time.elapsedMS` values and is called automatically by Game.update.
2015-09-09 12:09:18 +01:00
photonstorm
2de83328d9
Testing Tween timer fix.
2015-09-08 17:44:28 +01:00
Richard Davey
38eca4d5b9
Filter.addToWorld allows you to quickly create a Phaser.Image object at the given position and size, with the Filter ready applied to it. This can eliminate lots of duplicate code.
2015-09-03 00:46:47 +01:00
photonstorm
8833a509eb
jsdoc fix.
2015-09-02 16:16:52 +01:00
photonstorm
32b0c98f7a
Group.resetChild is a new method that allows you to call both child.reset
and/or child.loadTexture
on the given child object. This is used internally by getFirstDead
and similar, but is made public so you can use it as a group iteration callback. Note that the child must have public reset
and loadTexture
methods to be valid for the call.
...
Group.getFirstDead, Group.getFirstAlive and Group.getFirstExists all have new optional arguments: `createIfNull`, `x`, `y`, `key` and `frame`. If the method you call cannot find a matching child (i.e. getFirstDead cannot find any dead children) then the optional `createIfNull` allows you to instantly create a new child in the group using the position and texture arguments to do so. This allows you to always get a child back from the Group and remove the need to do null checks and Group inserts from your game code. The same arguments can also be used in a different way: if `createIfNull` is false AND you provide the extra arguments AND a child is found then it will be passed to the new `Group.resetChild` method. This allows you to retrieve a child from the Group and have it reset and instantly ready for use in your game without any extra code.
2015-08-28 12:23:48 +01:00
Paul
26a6338072
Change splice.call(arguments, ..) to use slice
...
- Bypasses issue of usage incorrectly omitting 2nd argument to `splice`
- More clear of intent; `slice` does not modifify `arguments`
- `slice` is faster across all desktop browsers, by varying degrees
- Probably due to parameter-aliasing and de-opts when modified.
- Both `slice` and `splice` create a new Array object
2015-08-26 23:50:16 -07:00
Brice Thomas
ef536d276a
doc(Signal): fix typo
2015-08-06 13:34:14 +02:00
photonstorm
b365ebf570
jshint fix.
2015-08-03 16:45:03 +01:00
photonstorm
f4a1f11429
PIXI.CanvasPool is a new static global created to deal with the issue of resource leaks and continuous DOM node build-up when creating lots of Text or BitmapData objects, or when calling generateTexture
on any display object. The CanvasPool will do its best to re-use out dated canvas elements rather than filling up the DOM with new ones.
...
Sprite.setTexture has a new `destroyBase` parameter - set this to `true` if you know the base used a generated texture that isn't being used by any other sprites. This will free-up the canvas for further re-use by other calls to generateTexture or Text objects.
2015-08-03 16:09:16 +01:00
photonstorm
e901fb80f6
Merging in the CanvasPool changes to the core.
2015-08-03 14:46:55 +01:00
photonstorm
98ae410c34
Removed use of the deprecated enterFullScreen
and leaveFullScreen
signals from the Scale Manager (thanks @mmanlod #1972 )
2015-08-03 11:44:00 +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
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