Skip to content

Commit 124a315

Browse files
committed
update
1 parent e841ca3 commit 124a315

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
#Creating Platformer Game with html5, css and Phaser library
44

5-
°Tile bleeding fixed by extruding the tiles
6-
°LevelComplete (game scene) created for when player finished playing all the scenes in a level
7-
8-
To-do next
9-
1. Player should be able to go to previous scenes
10-
2. SoundManager
5+
UPDATES
6+
°Player can now go to previous scenes
7+
°Player has more abilities (slide, crouch, crouch-walk and roll)
8+
°User can continue game from where they left off

src/myInput.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class Input{
6565
window.addEventListener("touchmove", (e)=>{
6666
const dx = e.touches[0].clientX - this.touchX;
6767
const dy = e.touches[0].clientY - this.touchY;
68-
console.log (this.keys)
6968
if(dx < -this.touchThreshold){
7069
this.lastKey = "swipe left";
7170
if(this.keys.indexOf(this.lastKey) === -1){

src/states/PlayerStates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export class PlayerJump extends PlayerState{
143143
enter(){
144144
if(!this.player.body) return;
145145
this.player.jumpCount++;
146+
audio.play(audio.jumpSound);
146147
this.player.play("player-jump", true);
147148
this.player.setVelocityY(-this.player.speedY);
148149
}

0 commit comments

Comments
 (0)