Browse Source

更新游戏角色

master
jiannibang 6 years ago
parent
commit
880e7eeb44
  1. BIN
      games/game-ballmove/assets/ballmove/ball.png
  2. 5
      games/game-ballmove/scenes/PlayScene.js

BIN
games/game-ballmove/assets/ballmove/ball.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 79 KiB

5
games/game-ballmove/scenes/PlayScene.js

@ -104,9 +104,10 @@ class PlayScene extends Phaser.Scene {
this.ball.body.checkCollision.up = false;
this.ball.body.checkCollision.left = false;
this.ball.body.checkCollision.right = false;
this.ball.displayWidth = 114;
this.ball.displayWidth = 120;
this.ball.displayHeight = 120;
this.ball.setSize(114, 120, true);
this.ball.setSize(160, 250, true);
// this.ball.setScale(0.5);
let platformX = this.ball.x;
for (let i = 0; i < 10; i++) {

Loading…
Cancel
Save