Skip to content

Commit a25b9c0

Browse files
committed
0.2.0-beta
1 parent 3d8028b commit a25b9c0

File tree

5 files changed

+330
-60
lines changed

5 files changed

+330
-60
lines changed

README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Phaser.
4444
- [Mapping tiles](#mapping-tiles)
4545
- [Enabling physics bodies](#enabling-physics-bodies)
4646
- [Collision](#collision)
47+
- [Debug rendering](#debug-rendering)
4748
- [Extras](#extras)
4849
- [Minimum Y Offset](#minimum-y-offset)
4950
- [Collision pulling](#collision-pulling)
@@ -62,10 +63,10 @@ The plugin provides a couple of built in tile slope mappings:
6263

6364
- [Arcade Slopes tileset](assets)
6465
(`arcadeslopes`)
65-
([16px](assets/arcade-slopes-16.png),
66-
[32px](assets/arcade-slopes-32.png),
67-
[64px](assets/arcade-slopes-64.png),
68-
[128px](assets/arcade-slopes-128.png))
66+
([16px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-16.png),
67+
[32px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-32.png),
68+
[64px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-64.png),
69+
[128px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-128.png))
6970
- [Ninja Physics debug tileset](https://github.com/photonstorm/phaser/tree/v2.4.7/resources/Ninja%20Physics%20Debug%20Tiles)
7071
(`ninja`)
7172
([32px](https://raw.githubusercontent.com/photonstorm/phaser/v2.4.7/resources/Ninja%20Physics%20Debug%20Tiles/32px/ninja-tiles32.png), [64px](https://raw.githubusercontent.com/photonstorm/phaser/v2.4.7/resources/Ninja%20Physics%20Debug%20Tiles/64px/ninja-tiles64.png))
@@ -121,6 +122,16 @@ game.physics.arcade.collide(player, ground);
121122
game.physics.arcade.collide(emitter, ground);
122123
```
123124

125+
### Debug rendering
126+
127+
To debug your collision layer, set its debug property to `true`.
128+
129+
This will overlay the collision shapes of each tile when the layer is rendered.
130+
131+
```js
132+
ground.debug = true;
133+
```
134+
124135
### Extras
125136

126137
#### Minimum Y offset

0 commit comments

Comments
 (0)