Welcome to the Rust Game Engine! This game engine is built in Rust and features a decoupled frontend layer utilizing HTML and JavaScript with WebGL capabilities. This README.md file will guide you through the project structure and usage.
This directory contains JavaScript code responsible for the game's frontend. It leverages WebGL features for rendering the game world.
The heart of our game engine resides here, containing the core Rust codebase:
This module creates and manages the game environment. It communicates with the frontend layer to render the game and handles various game-related tasks.
This directory contains two important entities:
The GameObject
module encapsulates the logic for game objects. This includes their behavior, interactions, and properties within the game world.
The Vector3
module provides a versatile representation of vectorial quantities, such as positions and velocities. This is essential for physics calculations and game dynamics.
To begin using the Rust Game Engine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/rust-game-engine.git
-
Build the engine:
cd rust-game-engine cargo build
-
Run the example:
cargo run --example game
This will execute the example located in /example/game.rs
and showcase how to use the game engine. Feel free to modify the example to create your own games!
The Rust Game Engine relies on several external libraries and tools:
- Rust: The programming language used for developing the game engine.
- WebGL: The frontend leverages WebGL for rendering graphics in the browser.
Happy gaming! 🎮✨