Skip to content

Commit

Permalink
0.2.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
hexus committed Feb 10, 2017
1 parent 3d8028b commit a25b9c0
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 60 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Phaser.
- [Mapping tiles](#mapping-tiles)
- [Enabling physics bodies](#enabling-physics-bodies)
- [Collision](#collision)
- [Debug rendering](#debug-rendering)
- [Extras](#extras)
- [Minimum Y Offset](#minimum-y-offset)
- [Collision pulling](#collision-pulling)
Expand All @@ -62,10 +63,10 @@ The plugin provides a couple of built in tile slope mappings:

- [Arcade Slopes tileset](assets)
(`arcadeslopes`)
([16px](assets/arcade-slopes-16.png),
[32px](assets/arcade-slopes-32.png),
[64px](assets/arcade-slopes-64.png),
[128px](assets/arcade-slopes-128.png))
([16px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-16.png),
[32px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-32.png),
[64px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-64.png),
[128px](https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/master/assets/arcade-slopes-128.png))
- [Ninja Physics debug tileset](https://github.com/photonstorm/phaser/tree/v2.4.7/resources/Ninja%20Physics%20Debug%20Tiles)
(`ninja`)
([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))
Expand Down Expand Up @@ -121,6 +122,16 @@ game.physics.arcade.collide(player, ground);
game.physics.arcade.collide(emitter, ground);
```

### Debug rendering

To debug your collision layer, set its debug property to `true`.

This will overlay the collision shapes of each tile when the layer is rendered.

```js
ground.debug = true;
```

### Extras

#### Minimum Y offset
Expand Down
Loading

0 comments on commit a25b9c0

Please sign in to comment.