File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments