This is a simple Asteroids-style game implemented in C# using OpenTK for rendering.
- Ensure you have .NET 7.0 SDK installed on your system.
- Clone this repository to your local machine.
- Open a terminal and navigate to the project root directory.
- Run the following command to build the project:
-
After building the project, run the game using the following command:
-
How to play the game:
Use arrow keys to move the ship:
Up arrow: Accelerate Left/Right arrows: Rotate Spacebar: Shoot R key: Start/stop recording inputs P key: Start/stop replaying recorded inputs ESC key: Close the game
- GameState: Contains game logic and state management
- GameInput: Handles user input and AI control
- GameCamera: Manages the game camera
- GameRenderer: Handles rendering using OpenGL
- GameMain: The main application that ties everything together
- TestConsole: Contains unit tests for the game
AsteroidsGame/ ├── GameMain/ ├── GameState/ ├── GameInput/ ├── GameRenderer/ ├── GameCamera/ ├── TestConsole/ ├── AsteroidsGame.sln └── README.md
This project uses OpenTK for OpenGL bindings and windowing.