A simple raycasting engine inspired by Wolfenstein 3D, implemented in Rust using SDL2.
This project is a raycasting engine written in Rust, designed to recreate the visual style of Wolfenstein 3D. It utilizes the SDL2 library for graphics rendering.
- lazy_static - 1.4.0
- sdl2 - 0.36.0
Before running the raycasting engine, make sure you have SDL2 installed on your computer. You can download SDL2 from sdl2's website or install it using your system's package manager.
To run the raycasting engine, follow these steps:
-
Clone the repository:
git clone https://github.com/pedro-git-projects/raycasting-engine-rs.git
-
Change into the project directory:
cd raycasting-engine-rs
-
Build the project:
cargo build --release
This command will download and build the required dependencies.
Once the project is built, you can run the raycasting engine using:
cargo run --release
This command will launch the application, and you should see the raycasting engine window.
- Move forward: Up arrow
- Move backward: Down arrow
- Rotate left: Left arrow
- Rotate right: Right Arrow
- Quit the application: Esc
Adjust the controls as needed in the source code.