A 2D game engine built with Rust and SDL2, featuring a custom Entity Component System (ECS) architecture.
- Sprite rendering with support for animation
- Keyboard input handling
- Character movement and attack animations
- Sprite flipping based on movement direction
- Simple AI for non-player entities
A 2D game engine built with Rust and SDL2, featuring a custom Entity Component System (ECS) architecture.
- Sprite rendering with support for animation
- Keyboard input handling
- Character movement and attack animations
- Sprite flipping based on movement direction
- Simple AI for non-player entities
- Custom Entity Component System architecture
To get started with the Rust SDL2 Game Engine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/rust-sdl2-game.git cd rust-sdl2-game -
Install the required dependencies (see below).
-
Build and run the project:
cargo run
- Rust (stable channel)
- SDL2
- SDL2_image
# Using Scoop
scoop install sdl2 sdl2_image
# Or using MSVC development libraries
# Download from https://www.libsdl.org/download-2.0.php and https://www.libsdl.org/projects/SDL_image/brew install sdl2 sdl2_imagesudo apt-get install libsdl2-dev libsdl2-image-devContributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.