Welcome to the 2D Adventure Game repository! This project is a simple yet engaging 2D game built using JavaScript and the p5.js library. The game includes sound effects and background music to enhance the player experience.
- Interactive Gameplay: Navigate through the game world, avoid obstacles, and collect coins.
- Sound Effects: Enjoy various sound effects for actions like jumping and collecting coins.
- Background Music: Immerse yourself in the game with a retro background soundtrack.
- Responsive Design: The game adapts to different screen sizes for an optimal playing experience.
-
Clone the repository:
git clone [email protected]:itzoverdark/game-project-6.git
-
Navigate to the project directory:
cd 2D-Adventure-Game
-
Open
index.html
in your preferred web browser to start the game.
- Use the arrow keys to navigate your character through the game.
- Collect coins and avoid enemies to score points.
- Enjoy the background music and sound effects as you play.
- index.html: The main HTML file that loads the game.
- sketch.js: Contains the core game logic and p5.js setup.
- p5.min.js: p5.js library.
- p5.sound.min.js: p5.js sound library.
- Assets:
- 90s.jpg: Background image.
- coinSound.mp3: Sound effect for collecting coins.
- gameSound.mp3: Background music.
- jump.wav: Sound effect for jumping.
- jumpOnEnemy.mp3: Sound effect for jumping on an enemy.
- win.mp3: Sound effect for winning the game.
- oblivion.mp3: Additional background music.
- JavaScript: The core programming language used.
- p5.js: A JavaScript library for creative coding.
- HTML5: For structuring the web page.
- CSS3: For styling the game interface.