Maze Game!







Objective

My objective here was to create a simple game where you navigate your character to the goal through the path of obstacles. This was created using SVG for the graphics, and Javascript and HTML for the buttons and controls.

Problem

A problem I encountered here was that I could not figure out how to make vertical hit detection work. When I tried to troubleshoot and find what wasn’t working, I could not find a pattern. Sometimes it worked a little, other times it did not.

Solution

So, instead of wasting valuable time, I worked with what I had and made a maze only with horizontal walls. Having no vertical walls has now become the style of my game. I also used my time to add difficulty levels and buttons so the user could choose when to start the game, instead of it starting immediately.