mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 11:23:06 +08:00
Final release 1.1.4 examples finished.
This commit is contained in:
@@ -60,7 +60,7 @@ function update() {
|
||||
|
||||
if (cursors.up.isDown)
|
||||
{
|
||||
if (p.body.touching.down)
|
||||
if (p.body.onFloor())
|
||||
{
|
||||
p.body.velocity.y = -200;
|
||||
}
|
||||
@@ -80,6 +80,6 @@ function update() {
|
||||
function render() {
|
||||
|
||||
game.debug.renderCameraInfo(game.camera, 420, 320);
|
||||
game.debug.renderSpriteCollision(p, 32, 320);
|
||||
game.debug.renderPhysicsBody(p.body);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user