photonstorm
823997744b
Docs update.
2015-02-10 14:53:55 +00:00
Richard Davey
960383818b
Merge pull request #1609 from mikaturunen/dev
...
Read ObjectLayer Objects .type property for Tiles
2015-02-10 13:50:36 +00:00
photonstorm
6c9f8a1979
Typo fixes and removed old phaser versions and replaced with cdn.js link.
2015-02-10 13:32:03 +00:00
photonstorm
816a80f39a
If Body.customSeparateX
or customSeparateY
is true
then the Body will no longer be automatically separated from a **Tilemap** collision or exchange any velocity. The amount of pixels that the Body has intersected the tile is available in Body.overlapX
and overlapY
, so you can use these values to perform your own separation in your collision callback ( #992 )
2015-02-10 12:58:12 +00:00
Mika Turunen
be3edd8437
Now the backwards compatibility is not broken
...
As implementation is leaning on 0.11.0 feature of Tiled, I made sure the earlier Tiled files that might be used are not going to break from this. Defaulting to empty string if the .type property is not defined by Tiled (for Tiled < 0.11.0), otherwise we use the provided value.
2015-02-10 14:54:14 +02:00
photonstorm
4489a12fd8
Sprite.loadTexture and Image.loadTexture now no longer call updateTexture
if the texture given is a RenderTexture. This fixes issues with RetroFonts in IE11 WebGL as well as other RenderTexture related IE11 problems ( #1310 #1381 #1523 )
2015-02-10 12:27:55 +00:00
photonstorm
c154b8c785
Loader.resetLocked is a boolean that allows you to control what happens when the loader is reset, *which happens automatically on a State change*. If you set resetLocked
to true
it allows you to populate the loader queue in one State, then swap to another State without having the queue erased, and start the load going from there. After the load has completed you could then disable the lock again as needed.
...
Loader.reset has a new optional 2nd parameter `clearEvents` which if set to `true` (the default is false) will reset all event listeners bound to the Loader.
2015-02-10 11:58:17 +00:00
Mika Turunen
8a197b6023
Read ObjectLayer Objects .type property for Tiles
...
Why isn't the .type already read from the objects details as it's there? Latest release version of Tiled 0.11.0 has this field for Objects and it's quite extensively used by other frameworks.
Well, I need this and I suppose there are other people too who might be interested in having this in here too. Currently I go around this by creating a custom property of "type" and setting my value on it but that's just extremely silly.
2015-02-10 11:05:28 +02:00
photonstorm
ec732e497f
Docs update.
2015-02-09 22:19:05 +00:00
photonstorm
c42954ae59
Condensed Cache.destroy method.
2015-02-09 20:27:58 +00:00
photonstorm
2cb9ea312b
extension URL fix, jsdoc fix and small format changes.
2015-02-09 20:27:47 +00:00
photonstorm
3fc8fbadca
Docs update.
2015-02-09 20:10:51 +00:00
photonstorm
2b2ee27912
If for whatever reason you wish to hide the Phaser banner in the console.log you can set window.PhaserGlobal.hideBanner
to true
and it will skip the output. Honestly I'd rather if you didn't, but the option is now there.
2015-02-09 20:10:51 +00:00
Richard Davey
8340d56cd6
Merge pull request #1356 from pnstickne/wip-loader
...
Loader - parallel / extensible / documentation
2015-02-09 20:10:22 +00:00
Richard Davey
b66a0aa11a
Merge pull request #1605 from mickez/tilemaplayer_scale
...
Added scaling capability to TilemapLayer
2015-02-09 20:02:48 +00:00
Paul
367d976061
Loader: documentation
...
- Corrected some documentation wrt. parallel downloading
2015-02-08 20:40:54 -08:00
Paul
b63f6873e5
Loader: better audio selection
...
- Fixed bug where `.` in query portion of URI could throw off
auto-detection
- Allow `Loader#audio` to accept `{uri..,type..}` objects to blobs (and
data) URIs can also be used to auto-format detection / fallbacks.
2015-02-08 20:22:09 -08:00
Paul
86dc43874c
Loader: enabled parallel-by-default
...
- Minor cleanup to parallel: enabled by default, limit of 4 (hard-limit
max 12)
2015-02-08 19:42:34 -08:00
Paul
8d61441844
Merge remote-tracking branch 'upstream/dev' into wip-loader
...
- Added changes/support for 'blob:' uri's in upstream, extended to 'data:'
- Added upstream documentation
- Some small fixes for XHD from upstream
Conflicts:
src/loader/Loader.js
2015-02-08 19:42:22 -08:00
photonstorm
35a04b2f1e
TilemapParser now supports Tiled 0.11 version maps which includes the rotation
property on all Object types.
...
Tilemap.createFromObjects now checks for a `rotation` property on the Object and if present will set it as the Sprite.angle (#1433 )
2015-02-08 23:25:41 +00:00
photonstorm
ff04754bb8
Text width calculation strings made consistent.
2015-02-08 22:07:47 +00:00
photonstorm
e85be1f1d8
BitmapText.font wouldn't update an internal Pixi property (fontName) causing the text to fail to change font (thanks @starnut #1602 )
2015-02-08 22:07:36 +00:00
photonstorm
46e5cfc639
Readme update.
2015-02-08 21:57:09 +00:00
photonstorm
6d86952f98
JSDoc fix.
2015-02-08 21:57:09 +00:00
photonstorm
c891d617d9
Swapped back to 2.2.2 expected setting.
2015-02-08 21:57:09 +00:00
photonstorm
6081aa360f
P2.Body.clearCollision default values were incorrectly set to false
if no parameters were provided, even though the docs said they were true
(thanks @brianbunch #1597 )
2015-02-08 21:57:08 +00:00
Richard Davey
fed997a5a1
Merge pull request #1601 from draconisNoctis/dev
...
use XDomainRequest in Loader.xhrLoad
2015-02-08 21:51:12 +00:00
Richard Davey
ff095437ad
Merge pull request #1608 from nkholski/dev
...
Added support for tiles rotated and/or flipped in Tiled
2015-02-08 21:46:14 +00:00
emailto@niklasberg.se
a0ea73a4cd
Support for tiles rotated and/or flipped in Tiled
2015-02-08 21:21:39 +01:00
emailto@niklasberg.se
a70dd81a80
Support for tiles rotated and/or flipped in Tiled
2015-02-08 21:03:19 +01:00
Michael Rehn
bb2e263345
Changed to bracket on new line to follow the rest of the codes style
2015-02-07 21:31:17 +01:00
Michael Rehn
e600cb89b7
Added scaling capability to TilemapLayer via the setScale method
2015-02-07 19:48:44 +01:00
Mark Wecke
3a70677a05
use XDomainRequest in Loader.xhrLoad
2015-02-06 13:52:24 +01:00
Richard Davey
4d8f9e8723
Merge pull request #1600 from vulvulune/dev
...
Refactoring of the script to generate comments.d.ts
2015-02-05 22:57:09 +00:00
vulvulune
6795d30e74
jshint
...
equality check error
2015-02-05 21:40:03 +01:00
vulvulune
b8665f2979
Refactoring of the script to generate comments.d.ts
...
Refactoring of the script to generate comments.d.ts files.
Using typescript package instead of typescript-services (not maintened
anymore)
Update of the phaser.comments.d.ts with the last dev version.
2015-02-05 21:30:28 +01:00
photonstorm
9cdcdc7bc5
Device.touch checks if window.navigator.maxTouchPoints
is >= 1
rather than > 1, which now allows touch events to work properly in Chrome mobile emulation.
2015-02-05 06:12:20 +00:00
photonstorm
5bd231d532
JSDoc fixes.
2015-02-05 05:13:22 +00:00
photonstorm
569483ab17
Game._kickstart forces Phaser to always call at least one logic update before being allowed to render.
2015-02-05 05:12:59 +00:00
photonstorm
d710caed9e
Body.reset now resets the Body.speed value to zero.
2015-02-05 05:12:31 +00:00
photonstorm
8dec37107e
MSPointer.capture allows you to optionally event.preventDefault the pointer events (was previously always on)
...
MSPointer.event now stores the most recent pointer event.
MSPointer.pointerDownCallback, pointerMoveCallback and pointerUpCallback all allow you to set your own event based callbacks.
2015-02-05 05:12:00 +00:00
photonstorm
336fdfa672
TileSprites weren't destroying WebGL textures, leading to eventual out of memory errors (thanks @chacal #1563 )
2015-02-03 21:32:39 +00:00
photonstorm
f55ba6755f
jsdoc fix
2015-02-03 21:32:39 +00:00
photonstorm
3eba508382
Sprite.events.onDragStart has 2 new parameters x
and y
which is the position of the Sprite before the drag was started. The full list of parameters is: (sprite, pointer, x, y)
. This allows you to retain the position of the Sprite prior to dragging should dragFromCenter
have been enabled (thanks @vulvulune #1583 )
2015-02-03 21:32:39 +00:00
photonstorm
2ba6e0528e
TilemapLayer.getTiles now returns a copy of the Tiles found by the method, rather than references to the original Tile objects, so you're free to modify them without corrupting the source (thanks @Leekao #1585 )
2015-02-03 21:32:39 +00:00
Richard Davey
a2854d21fd
Merge pull request #1580 from integricho/fix#1551
...
fix #1551 - detect mouseup on tilesprites
2015-02-03 21:16:33 +00:00
Richard Davey
41d9a42a02
Merge pull request #1565 from abtion/master
...
Fix CORS loading BitmapFonts with IE9
2015-02-03 21:14:45 +00:00
Richard Davey
66ad09ebd0
Merge pull request #1549 from tomlarkworthy/fixAdjustMass
...
Bug fix: adjust mass and debug body gfx
2015-02-03 21:12:15 +00:00
Richard Davey
0953e927b4
Merge pull request #1559 from vulvulune/dev
...
Complete "tsdocs" tasks to download plugins + improve ts doc + grunt:jsdoc
2015-02-03 21:04:30 +00:00
Richard Davey
e6b5806c26
Merge pull request #1581 from jromer94/master
...
fixed index out of bound error
2015-02-03 20:52:04 +00:00