-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐จ chore(audio-manager.js): refactor AudioManager constructor to use sโฆ
โฆtatic paths for sound and image files ๐ fix(audio-manager.js): fix error handling in preloadImages method ๐ feat(audio-manager.js): add playJumpSound method to play jump sound when Mario jumps ๐ง refactor(background.js): remove unnecessary instance variables from Background class ๐ง refactor(game.js): remove unnecessary instance variables from Game class ๐ง refactor(mario.js): remove unnecessary instance variables from Mario class ๐ง refactor(obstacle.js): remove unnecessary instance variables from ObstacleManager class ๐ง refactor(utils.js): rename src parameter to srcset in loadImages function
- Loading branch information
Showing
9 changed files
with
66 additions
and
42 deletions.
There are no files selected for viewing
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { Game } from './src/index.js'; | ||
|
||
const init = () => { | ||
const game = new Game({ defaultBottom: 50, speed: 5 }); | ||
const game = new Game(); | ||
}; | ||
|
||
window.onload = init; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters