File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Check out the **[demo](http://hexus.github.io/phaser-arcade-slopes)**!
29
29
## Installation
30
30
31
31
Grab a copy of the
32
- [ latest release] (( https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/v0.1.1/dist/phaser-arcade-slopes.min.js )
32
+ [ latest release] ( https://raw.githubusercontent.com/hexus/phaser-arcade-slopes/v0.1.1/dist/phaser-arcade-slopes.min.js )
33
33
from the [ ** dist** ] ( dist ) directory in this repository and include it after
34
34
Phaser.
35
35
@@ -123,10 +123,6 @@ game.physics.arcade.collide(emitter, ground);
123
123
124
124
### Extras
125
125
126
- If you're making a platformer, your player has drag on the X axis, and you don't
127
- want it to slide down slopes, try using these features in your ` create() `
128
- method.
129
-
130
126
#### Minimum Y offset
131
127
132
128
This feature separates rectangular physics bodies on the Y axis only, in the
@@ -140,6 +136,9 @@ player.body.slopes.preferY = true;
140
136
game .slopes .solvers .sat .options .preferY = true ;
141
137
```
142
138
139
+ If you're making a platformer, your player has drag on the X axis, and you don't
140
+ want it to slide down slopes, this should solve your problem.
141
+
143
142
#### Collision pulling
144
143
145
144
To attempt to keep objects on a surface, you can use collision pulling.
You can’t perform that action at this time.
0 commit comments