Skip to content

A classic 2D platformer game developed using p5.js, HTML, and CSS. Players navigate through levels, overcoming obstacles and collecting items in this engaging platforming experience.

Notifications You must be signed in to change notification settings

y8tireu/2D-Platformer-Game

 
 

Repository files navigation

2D Adventure Game

2D Platformer Game GIF

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.

Features

  • 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.

Installation

  1. Clone the repository:

    git clone [email protected]:itzoverdark/game-project-6.git

  2. Navigate to the project directory:

    cd 2D-Adventure-Game

  3. Open index.html in your preferred web browser to start the game.

Usage

  • 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.

Project Structure

  • 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.

Technologies Used

  • 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.

About

A classic 2D platformer game developed using p5.js, HTML, and CSS. Players navigate through levels, overcoming obstacles and collecting items in this engaging platforming experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.2%
  • HTML 0.8%