Safi Game Engine
ECS Game Engine

Bevy-inspired ECS in C# with Vulkan rendering in C++

🎮

Entity Component System

C# owns game logic — entities, components, systems, and queries. Data-oriented design inspired by Bevy.

🎨

Vulkan Rendering

C++ rendering backend via MoltenVK. glTF loading, multi-entity draw calls, Blinn-Phong lighting, and texture mapping.

🔗

P/Invoke Bridge

Clean C#/C++ boundary via DllImport. Systems push transforms and lights to the GPU each frame.

📦

Procedural Primitives

Generate box, sphere, plane, cylinder, and capsule meshes without external files — with UVs baked in.

📷

Camera System

Third-person orbit, first-person, and debug free camera with mouse look and scroll wheel zoom.

🔍

Debug Overlay

GPU-rendered FPS, delta time, and entity count overlay with F3 toggle. Font atlas via stb_truetype.