Richard Davey
71d6f8a085
Added fillMesh and strokeMesh.
2017-12-07 05:31:31 +00:00
Richard Davey
d89b6ba6b6
Added Mesh methods, camera and projection matrix.
2017-12-07 04:52:59 +00:00
Richard Davey
0b84b06e48
ESLint fixes
2017-12-07 04:52:07 +00:00
Felipe Alfonso
ea0c1ab81c
Fixed shader so blending is applied properly. Textures now have a premultiplied alpha property flag and unpacking property is set at creation.
2017-12-06 20:52:09 -03:00
Michael Hadley
55492e8940
Typo fix
2017-12-03 15:31:05 -06:00
Richard Davey
50b1a67043
Added Group.countActive
2017-12-03 17:12:22 +00:00
Michael Hadley
f7cd3deb93
Newsletter addition: WeightedRandomize
2017-12-03 08:56:12 -06:00
Michael Hadley
d686cd7140
Fix: use globalAlpha since renderer.setAlpha doesn't work with ctx manipulation
2017-12-03 08:55:53 -06:00
Richard Davey
8a2ea673b6
Group.createMultipleCallback added
2017-12-02 04:03:22 +00:00
Richard Davey
011ebb5968
Destroy resorts children and sets invisible
2017-12-02 04:03:06 +00:00
Richard Davey
ed56fbce37
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-12-02 01:24:52 +00:00
Richard Davey
84c86e23f0
strokePoints has new autoClose argument which strokeEllipse takes advantage of
2017-12-02 01:24:18 +00:00
Michael Hadley
10dfa0a7da
Reverting last change - making it easier to access collision groups from Tileset
2017-12-01 18:57:27 -06:00
Michael Hadley
8adce2ed2e
Tidying: making it easier to access collision objects from a tile
2017-12-01 18:08:58 -06:00
Michael Hadley
806c9d3237
Stroke ellipse fixes
...
- Circumference points should calculate point based on top left of ellipse
- Graphics missing Ellipse class
- Ellipse stroke not "closed"
2017-12-01 18:05:39 -06:00
Michael Hadley
195ea19ea7
Extra tilemap method findTile (matches Array.prototype.find)
2017-12-01 13:46:27 -06:00
Michael Hadley
a8fdcbc56b
Small fix: use base tile size for tile <-> XY transforms. This only matters for maps with different size tiles.
2017-12-01 13:26:09 -06:00
Michael Hadley
37767ebde1
Tidy: fix v2 linting errors and move Tiled parser bits into modules
2017-12-01 13:26:09 -06:00
Michael Hadley
ed5cdf0bdb
Tidy up - remove old skipIndexZero property on layers
2017-12-01 13:26:09 -06:00
Michael Hadley
742ff1a439
Internal terminology change to make API clearer: tile.worldXY -> tile.pixelXY
2017-12-01 13:26:09 -06:00
Richard Davey
81275a6197
Fixed transform issue with Text padding.
2017-12-01 16:53:02 +00:00
Richard Davey
f2c05d2b0d
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-12-01 03:12:00 +00:00
Richard Davey
d0fb5a69f4
Allows for 'font' and 'fill' overrides
2017-12-01 03:11:57 +00:00
Richard Davey
b393aed2e3
Fixed setPadding and padding value assignment
2017-12-01 03:11:41 +00:00
Richard Davey
025c9dc131
Padding now passed in the style object and avoids double call to updateText
2017-12-01 03:11:23 +00:00
Michael Hadley
01f34e18b7
Recalculate faces: make this reset faces on non-colliding tiles
...
This handles edge cases where things like copy can make a tile become non-colliding w/o reseting faces
2017-11-30 17:19:19 -06:00
Felipe Alfonso
ef942fb204
Premultiplied Alpha blending
2017-11-30 16:05:45 -03:00
Michael Hadley
0993af649a
Bug fix: extend from empty object
2017-11-30 12:26:07 -06:00
Richard Davey
2e7a336ef9
Handling new style settings for fonts and padding.
2017-11-30 17:17:29 +00:00
Richard Davey
5e975eda2c
font has been removed and replaced with fontFamily, fontSize and fontStyle.
...
fill has been replaced with color as it just makes more sense.
2017-11-30 17:17:28 +00:00
Richard Davey
4d71806bea
Text padding is passed to the Text.setPadding method to handle.
2017-11-30 17:17:27 +00:00
Richard Davey
7bd8bf2075
The testString can now be set in the Text config.
2017-11-30 17:17:27 +00:00
Michael Hadley
b53f68c84a
Factor layer scale into tile culling
2017-11-30 11:15:35 -06:00
Michael Hadley
85e75eafa8
Fix for coord transform between world <-> tile + expose tile -> world methods
2017-11-30 09:22:54 -06:00
Michael Hadley
bde77f7b95
Blank layers - pass along map's base tile size
2017-11-30 06:56:35 -06:00
Michael Hadley
76b74c677c
Tile culling: use tile's worldXY and w/h so maps with different tileset sizes work
2017-11-30 06:56:13 -06:00
Michael Hadley
a3b8a25521
Allow tilemap to change base tile size for all tiles
2017-11-29 23:16:48 -06:00
Michael Hadley
1be6d7a681
Tilemap & Dynamic: new method for putting a 2D array of tiles at a location
2017-11-29 21:59:11 -06:00
Michael Hadley
e548b73e80
Proper support for multiple tile sizes in a tilemap
...
- Adds base tile size to Tile class. Tiled positions tiles based on the base size.
- Supports proper translation of Tiled's bottom left coord system to Phaser's top left coord for tiles that are bigger or smaller than the base tile size.
- Update static renderer to read position/size from tile
2017-11-29 20:06:52 -06:00
Michael Hadley
2ae4bfa85a
Jsdocs: StaticTilemapLayer & DynamicTilemapLayer
2017-11-29 19:23:42 -06:00
Michael Hadley
36a92d15e7
Add note about ImageCollection being a direct v2 port
2017-11-29 19:23:42 -06:00
Michael Hadley
59cdf89836
Jsdocs: Tilemap
2017-11-29 19:23:42 -06:00
Richard Davey
d1cc12693c
If a GameObject has a preDestroy
method then call it before running the standard destroy calls.
2017-11-30 01:20:22 +00:00
Richard Davey
3964c7a2ac
Added in support for RTL text in the Text Game Object.
2017-11-30 01:20:02 +00:00
Richard Davey
3c8a5b4132
Fixed issue where an array passed in the constructor wasn't properly displayed
...
fix #3094
2017-11-30 00:03:22 +00:00
Michael Hadley
d6f8812f49
Jsdoc: Tile
2017-11-29 15:37:23 -06:00
Michael Hadley
a76e270c78
Jsdoc fixup: Number -> Integer, array -> Type[]
2017-11-29 15:07:56 -06:00
Michael Hadley
191f621dad
Jsdocs: Tileset
2017-11-29 14:39:30 -06:00
Michael Hadley
5f3156e2b8
Jsdocs: Tilemap parsing
2017-11-29 14:02:45 -06:00
Michael Hadley
0ee08b76a8
Jsdocs: ParseToTilemap
2017-11-29 13:53:05 -06:00