Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 873 Bytes

README.md

File metadata and controls

24 lines (22 loc) · 873 Bytes

ray_casting_maze

A first-person maze traversal application.

img1.png img2.png

Features:

  • Random maze generation
  • Collision detection
  • User-controlled player movement
  • First-person view rendering using ray casting technique

Objective:

Player always spawn in the top-left corner of the maze, the objective is to reach the bottom-right corner of the maze.
Player can use top-down map to navigate through the maze, or use the DFS algorithm to explore the maze.
The crosshair's color indicates if the position aimed at is already visited:

  • Green: unvisited
  • Red: visited

Control:

  • ESCAPE key: exit program
  • UP key: forward
  • DOWN key: backward
  • RIGHT key: turn clockwise
  • LEFT key: turn counterclockwise
  • SPACE key: show map