AlexDev

Join the Gang Gang and have the latest AI and Tech content.

Home page View on GitHub

Escape the Labyrinth

Posted on 25 July 2023.
javascript html css game

About

For this project I have used ChatGPT to generate an idea for a game. I have used the following prompt Give me a title for a game that I would have to implement as a challenge to get the title idea. Then I used the title to come up with mechanics for the game.

You have to use wasd to move around. The objective is to find the exit of the maze. You have to avoid the guards and not step on traps when they are active. The exit of the maze will be blocked (closed door) until you find all the keys. You pick up keys by walking over them.

Quickstart

The game is written in plain javascript and can be hosted statically with

python -m http.server

Conclusion

I think that building this game I learned how to think better of the canvas element from the javascript side. I think it is also a good learning experience to try to build web stuff from scratch and not use large frameworks.