Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/suxrobgm/maze-godot

2D Maze game with AI built using Godot
https://github.com/suxrobgm/maze-godot

2d-game astar-algorithm dijkstra-algorithm game-development godot maze pathfinding

Last synced: about 2 months ago
JSON representation

2D Maze game with AI built using Godot

Awesome Lists containing this project

README

        

# Maze 2D Game
Sample 2D maze game built using Godot Engine 4.x and C#.
Demonstrated how to integrate custom pathfinding algorithms in 2D grid-based games.
Also, demonstrated how to use the Godot Engine's built-in navigation2D node for pathfinding.
Compared the performance of custom pathfinding algorithms with the built-in navigation2D node that uses A* algorithm under the hood.

## Features
- Custom pathfinding algorithms such as Breadth First Search, Dijkstra's Algorithm, and A* Algorithm.
- Built-in navigation2D node that uses A* algorithm.
- Tilemap-based maze generation.
- Player movement using keyboard input.
- Enemy movement using pathfinding algorithms.
- Collectible gems.
- High quality C# code with detailed comments.

## Game Objective
Collect all gems in the maze and don't get caught by the enemy.

## Keyboard Controls
- Arrow or WASD keys: Move player.
- Esc key: Exit to the main menu.
- Tilda key: Toggle debug mode.

## Credits
- Sukhrob Ilyosbekov
- Shashwath Udaya Kumar
- Reena Sajad Hyder
- Reemaa Sajad Hyder

## Screenshots
### Main Menu
![Screenshot 1](./screenshots/main-menu.png)

### Game Scene
![Screenshot 2](./screenshots/game-scene.png)

### Test A* Algorithm Scene
![Screenshot 3](./screenshots/a-star-1.png)
![Screenshot 4](./screenshots/a-star-2.png)

### Test Dijkstra's Algorithm Scene
![Screenshot 5](./screenshots/dijkstra-1.png)
![Screenshot 6](./screenshots/dijkstra-2.png)

### Test Breadth First Search Scene
![Screenshot 7](./screenshots/bfs-1.png)
![Screenshot 8](./screenshots/bfs-2.png)