Skip to content

Repository files navigation

Ultimate Maze Experience

A game about escaping a maze. You need to escape 100 times to succeed and secure your completion time. There are no pauses and no saves. The game is very speedrun-oriented and features a persistent timer in the corner of the screen.

-Maze generator
-In game experience
-Build with


Maze Generator

The file labyrinth.java defines a class with a constructor that generates a maze of a specified size. It is an implementation of Prim's algorithm, which follows these four key steps to create the maze:

  1. Initialize a grid full of walls with dimensions $x \times y$, representing the final size of the maze.
  2. Pick a random starting cell, mark it as part of the maze, and add its neighboring walls to a list.
  3. Pick a random wall from the list. If it neighbors only one cell that is already part of the maze, turn the wall into a path, mark the newly reached cell as part of the maze, and add its neighbors to the list.
  4. Repeat step 3 until there are no more walls left in the list to process.
The file then generates a text-based version of the maze below.


In game experience:

Build with

  • Java 23

About

A game about escaping the maze

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages