ABC Game Engine - Simple ECS Framework
This Rust project provides a basic framework for managing game entities, components, and systems in the ABC Game Engine using an Entity Component System (ECS) approach.
Quick Start
Create a Game Engine:
let mut engine = new;
Add an Entity and Components:
let entities_and_components = &mut engine.entities_and_components;
let entity = entities_and_components.add_entity;
Add components like Position and Velocity
entities_and_components.add_component_to;
entities_and_components.add_component_to;
Define a System:
Run the Engine:
// Add your system to the engine
engine.add_system;
// Run the engine in a loop
loop
Components and Systems
The example includes simple components like Position and Velocity, along with a MovementSystem that updates positions based on velocities. Customize these components and systems according to your game's needs.
Testing
Explore the included test module to see how entities, components, systems, and the game engine are used together. Use this as a starting point for writing your own tests.
Feel free to tweak and expand the ECS framework to fit your game development requirements within the ABC Game Engine!