Inspiration

๐ŸŒŸ Pac-Man Maze Adventure

๐ŸŽฎ About the Project

This project is a Pac-Man-inspired maze game where the player navigates a complex labyrinth, collects moon and star items, and avoids obstacles. The goal is to bring a classic arcade feel with some unique twists.

๐ŸŽจ Inspiration

Iโ€™ve always been fascinated by classic arcade games, especially Pac-Man. The idea of navigating a maze while collecting objects seemed like a fun challenge to implement. I wanted to create a simple yet engaging game using JavaScript and HTML5 Canvas.

๐Ÿ› ๏ธ How I Built It

  • HTML5 Canvas: Used for rendering the game environment, including walls, paths, and Pac-Man.
  • JavaScript: Handles game logic, movement, and collision detection.
  • Event Listeners: Used for keyboard inputs to move Pac-Man.
  • Randomized Items: The moon and star are placed randomly in the maze, ensuring a new challenge every playthrough.

๐Ÿš€ Challenges Faced

  • Image Loading Issues: Initially, images werenโ€™t appearing properly because they loaded asynchronously. Fixed by ensuring all images were loaded before drawing them.
  • Maze Rendering Bugs: Some tiles werenโ€™t displaying correctly, requiring debugging of array indices and tile size calculations.
  • Movement Logic: Preventing Pac-Man from moving through walls was tricky, but implementing collision detection solved the issue.

๐ŸŽฏ Lessons Learned

  • Handling asynchronous image loading in JavaScript.
  • Implementing collision detection and grid-based movement.
  • Debugging HTML5 Canvas rendering issues.

This project was a great learning experience, and I plan to add enemies and a scoring system in future updates! ๐ŸŽ‰

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for paralyzedDreams

Built With

Share this project:

Updates