Posted October 22, 2018 by pokolo
I added jumping using the code below.
I also changed movement keys to
- Left: Left Arrow Key
- Right: Right Arrow Key
- Jump: Up Arrow Key
if(this.key_Up.isDown && player.body.touching.down) { player.setVelocityY(-100); }