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
photonstorm
43d6339f3a
New jsdoc files generated.
2015-03-23 23:46:30 +00:00
photonstorm
12fc424305
Huge amount of jsdoc updates.
2015-03-23 23:46:09 +00:00
photonstorm
08c9513f98
Improving the Component documentation.
2015-03-23 19:56:23 +00:00
photonstorm
85c8f60d7c
Removed 'global' component arrays.
2015-03-23 19:19:07 +00:00
photonstorm
3db4313e5d
Docs update.
2015-03-23 16:13:04 +00:00
photonstorm
b7b622a556
Text style has a new optional property: backgroundColor
which is a Canvas fill style that is set behind all Text in the Text object. It allows you to set a background color without having to use an additional Graphics object.
...
Text.lineSpacing can now accept negative values without cutting the bottom of the Text object off. The value can never be less than the height of a single line of text.
Text.lineSpacing is no longer applied to the first line of Text, which prevents text from being cut off further down the Text object.
2015-03-23 16:12:23 +00:00
photonstorm
7010883bc3
Tidying up.
2015-03-23 15:07:09 +00:00
photonstorm
77eaa7e707
Optimised World.collideHandler and added SORT_NONE option.
2015-03-23 15:05:57 +00:00
photonstorm
b07ce89236
sourceWidth / Height now only set from the texture if the object has a texture.
2015-03-23 15:05:39 +00:00
photonstorm
1486e166bd
Added physicsType property.
2015-03-23 15:04:27 +00:00
photonstorm
55048a4b25
BitmapText objects now have an anchor
property. This works in a similar way to Sprite.anchor except that it offsets the position of each letter of the BitmapText by the given amount, based on the overall BitmapText width - whereas Sprite.anchor offsets the position the texture is drawn at.
2015-03-23 15:03:53 +00:00
photonstorm
506ff8843e
Fixed incorrect use of this.response which broke Binary files with callbacks. Should be all of them caught now - ProTracker example now works again as a result too.
2015-03-23 10:52:43 +00:00
photonstorm
35a9bdcfc9
Fixed loading of physics json data (old responseText reference)
2015-03-23 10:46:38 +00:00
photonstorm
ba052389a3
New version of p2.js merged for testing.
2015-03-23 10:11:49 +00:00
photonstorm
3f30a3d0d2
jsdocs updates.
2015-03-23 10:11:39 +00:00
photonstorm
4fbb7d2a7e
readme updates.
2015-03-23 08:13:59 +00:00
photonstorm
ca752cc59c
jsdoc updates.
2015-03-23 08:13:59 +00:00
photonstorm
a190823dad
jsdoc fix.
2015-03-23 08:13:59 +00:00
photonstorm
4e3d189678
Updated Pixi version.
2015-03-23 08:13:59 +00:00
photonstorm
c84f488e31
Fixed typescript def for ResizeCallback #1659 #1680
2015-03-23 08:13:58 +00:00
Richard Davey
ae72107de8
Merge pull request #1685 from pnstickne/wip-1679
...
Animation - guard around destroy
2015-03-23 07:53:59 +00:00
Richard Davey
a10a18277a
Merge pull request #1686 from englercj/dev
...
Add debug drawing for p2 capsule shape
2015-03-23 07:47:30 +00:00
Chad Engler
f5af981da3
fix missing semicolon
2015-03-22 21:28:27 -07:00
Chad Engler
97410f8907
add debug drawing for p2 capsule shape
2015-03-22 19:45:18 -07:00
Paul
6225bb0e94
Animation - guard around destroy
...
- Allows sprites (and/or the animation) to be destroyed from within
the onUpdate, onLoop, or onComplete events
2015-03-22 17:01:37 -07:00
photonstorm
cb9ef4f12e
Text.padding specifies a padding value which is added to the line width and height when calculating the Text size. ALlows you to add extra spacing if Phaser is unable to accurately determine the true font dimensions ( #1561 #1518 )
2015-03-19 01:54:14 +00:00
photonstorm
b13acdb23b
TilingSprite.destroy fixed if TilingSprite hasn't ever been rendered ( #1663 )
2015-03-19 01:39:39 +00:00
photonstorm
5a9b509b44
ArraySet.removeAll allows you to remove all members of an ArraySet and optionally call destroy
on them as well.
...
GameObject.input.dragStartPoint now stores the coordinates the object was at when the drag started. This value is populated when the drag starts. It can be used to return an object to its pre-drag position, for example if it was dropped in an invalid place in-game.
2015-03-19 00:51:13 +00:00
Richard Davey
23d31ffc62
Merge pull request #1677 from breakosaur/documentation-fixes
...
Fixed a few documentation typos.
2015-03-18 22:53:29 +00:00
breakosaur
bb600b4319
Fixed a few documentation typos.
2015-03-18 21:07:36 +00:00
photonstorm
62b2fb51d6
Link changed ( fix #1672 )
2015-03-18 19:25:12 +00:00
Richard Davey
358e0a6675
Merge pull request #1674 from englercj/dev
...
Fix debug drawing for p2 physics bodies
2015-03-18 19:21:59 +00:00
photonstorm
0868ff696f
Defs update re: #1657
2015-03-18 19:17:42 +00:00
photonstorm
f2b03c8826
Readme updated.
2015-03-18 19:14:58 +00:00
photonstorm
165e5935c2
JSDoc fixes.
2015-03-18 19:14:58 +00:00
Richard Davey
e63569634c
Merge pull request #1671 from pnstickne/wip-1666
...
Tilemap rendering sets initial state better
2015-03-18 19:12:23 +00:00
Richard Davey
c38632a191
Merge pull request #1675 from englercj/typescript-split
...
Split p2 definitions into its own file
2015-03-18 19:11:26 +00:00
Chad Engler
c458b6e7af
split p2 definitions into its own file
2015-03-18 11:44:11 -07:00
Chad Engler
0b3850cc0c
Fix debug drawing for p2 physics bodies
2015-03-18 01:19:32 -07:00
Paul
dcc83ec793
Tilemap renderer - context save/restore
...
- Added context save/restore; the secondary issue when the canvas
is copied from later, and if any alpha is applied
2015-03-16 22:05:46 -07:00
Paul
54dba67f50
Tilemap rendering sets initial state better
...
- #1666 - previous alpha state could bleed through.
Now the initial alpha and composite modes are set explicitly.
2015-03-16 21:35:39 -07:00
Richard Davey
283457a4f9
Merge pull request #1668 from pnstickne/wip-1664
...
Corrected logic when loading a pack from data
2015-03-16 10:08:42 +00:00
Paul
cc5d1d02e5
Loader: loading from pack data
...
- Corrected logic where packs added via data would still try to be loaded.
This makes the behavior correct per the documentation and v2.2
2015-03-15 20:26:37 -07:00
photonstorm
6cf982a4a0
Fixed to Destroy component if still in render loop.
2015-03-11 01:44:46 +00:00
photonstorm
ee61d95980
Tidying up the Pixi source.
...
Added DisplayObject.destroy to cleanly remove all references, callbacks and cached textures (fixes #1656 )
2015-03-10 15:13:37 +00:00
photonstorm
0516167c3d
Finally tracked down the rogue bug causing Graphics objects to not work with various components ( fix #1654 )
2015-03-10 14:23:49 +00:00
photonstorm
fe9a9fcd63
More Pixi updates.
2015-03-05 19:26:53 +00:00