An open API service indexing awesome lists of open source software.

https://github.com/tiawl/maze

Maze game written in Typescript for learning purpose
https://github.com/tiawl/maze

Last synced: about 1 month ago
JSON representation

Maze game written in Typescript for learning purpose

Awesome Lists containing this project

README

        

# Maze

### Easy Maze

This Maze is an Easy Maze. Finding easy mazes is only possible below level 10.
* The Red Circle is the Player.
* The Pink Square is the Princess. The player has to rescue the princess to finish the maze.
* The Black Sticks are Walls. The player can not pass through a wall.
* The Black Lock is a Locked Door. The player can not pass through a locked door.
* The Yellow Rhombus is a Key. The player has to reach one key to unlock one door.A new key is generated when the player unlocks a door.

Tip: Following the doors is the best way to find the princess.

---

### Stairs Maze

||||
|:------------:|:-------------:|:-----------:|
| Floor 0 | Floor 1 | Floor 2 |

This Maze is a Stairs Maze. A stairs maze is a 3D Maze where the player can find doors and keys.
The player can unlock this type of maze by reaching level 10.
* The Yellow Squares are Up Stairs. The player can access higher floors by using up stairs.
* The Blue Squares are Down Stairs. The player can access lower floors by using down stairs.
* The Green Squares are Bidirectional Stairs. The player can access lower and higher floors by using bidirectional stairs.

Accessing a stair do not move the player.

---

### Springs Maze

This Maze is a Springs Maze. There are doors and keys in springs mazes.
The player can unlock this type of maze by reaching level 10.
* The Orange Squares are Springs. A spring is linked to another spring (and only one).
* The Orange Square With Red Borders is the Linked Spring of the spring where the player is on.
When the player uses a spring, the player is sent to its linked spring.

---

### Ice Maze

||
|:------------:|
| The player skates until the next white Square |

This Maze is an Ice Maze. There are no doors and keys in ice mazes.
The player can unlock this type of maze by reaching level 10.
The Cyan Squares are Ice. When the player is on it, the player skates in the same direction until the next white square.

---

### Arrows Maze

|||
|:------------:|:------------:|
| Before the player used interuptor | After the player used interuptor |

This Maze is an Arrows Maze. There are no doors and keys in arrows mazes.
The player can unlock this type of maze by reaching level 10.
The Grey Squares With Colored Arrows are Arrows. When the player passes over it, the player is displaced in the arrow direction.
The player has an interuptor to reverse arrow directions when used (with an unlimited usage).

---

### Portals Maze

||||
|:------------:|:-------------:|:-----------:|
| Year 0 | Year 2 | Year 5 |

This Maze is a Portals Maze. A portals maze is a 3D Maze where the player can not find doors and keys.
The player can unlock this type of maze by reaching level 10.
* The Red Spirals are Future Portals. The player can access the nearest next year by using future portals.
* The Blue Spirals are Past Portals. The player can access the nearest past year by using past portals.
* The Purple Spirals are Bidirectional Portals. The player can access nearest next and past years by using bidirectional portals.

Each year 12 nodes are added to a maze but portals do not give access to each year of the maze.
For example in the maze shown above, years 1, 3 and 4 are unaccessible.
Passing through a portal does not move the player.

---

### Queens Maze

This Maze is a Queens Maze. There are doors and keys in queens mazes.
The player can unlock this type of maze by reaching level 10.
The White Squares with Brown Corners are Queens.
When the player is over a queen, the player can be displaced on the nearest node in the direction of the brown corner.

---

### Controls

#### General



Moves the player to the left



Moves the player to the right



Moves the player to the top



Moves the player to the down


+
Zoom In


-
Zoom Out


Enter
Enables/Disables smooth maze building animation(disabling smooth animation builds big mazes faster)

#### Stairs Maze Specific


Page Up
Moves the player to the higher floor if the player is on up or bidirectional stairs


Page Down
Moves the player to the lower floor if the player is on down or bidirectional stairs


Shift
Moves the view to the higher floor


Control
Moves the view to the lower floor

#### Springs Maze Specific


Space
Moves the player to the linked spring where the player is on


Mouse
Highlights a spring and its linked spring

#### Arrows Maze Specific


Space
Reverses arrows direction

#### Portals Maze Specific


=
Moves the player to the nearest next year if the player is on future or bidirectional portal


Backspace
Moves the player to the nearest past year if the player is on past or bidirectional portal


F
Moves the view to the nearest next year


P
Moves the view to the nearest past year

#### Queens Maze Specific


1
Moves the player to the bottom-left if the movement is allowed by the queen


3
Moves the player to the bottom-right if the movement is allowed by the queen


7
Moves the player to the top-left if the movement is allowed by the queen


9
Moves the player to the top-right if the movement is allowed by the queen

---

### Solution

Mazes has always a solution (and only one). The player can find it or type the password to see it.

---

### Configuration

To play game, type this in your terminal when you are in the ./Maze repository:
```sh
tsc
firefox index.html
```