XFOSS/mfs
Multi-Platform Game Engine Written in Zig
A high-performance, cross-platform game engine written in Zig, featuring modern rendering capabilities, comprehensive physics simulation, and advanced systems for creating next-generation games and applications.
The MFS Engine has achieved production-ready status with:
See Engine Overview for details.
src/tools/asset_processor.zig
)src/tools/profiler.zig
, profiler_visualizer
)src/tools/debugger.zig
)src/tools/visual_editor.zig
)# Clone the repository
git clone https://github.com/yourusername/mfs-engine.git
cd mfs-engine
# Build the engine
zig build -Doptimize=ReleaseFast
# Run a demo
zig build run-vulkan-cube
const mfs = @import("mfs");
pub fn main() !void {
// Initialize engine
var engine = try mfs.Engine.init(.{
.app_name = "My Game",
.graphics_backend = .vulkan,
});
defer engine.deinit();
// Create a window
const window = try engine.createWindow(.{
.title = "MFS Engine Demo",
.width = 1280,
.height = 720,
});
// Main loop
while (!window.shouldClose()) {
try engine.update();
try engine.render();
}
}
mfs/
├── src/ # Source code
│ ├── core/ # Core systems (memory, events, logging)
│ ├── graphics/ # Rendering systems and backends
│ ├── physics/ # Physics simulation
│ ├── audio/ # Audio systems
│ ├── scene/ # Scene management and ECS
│ ├── ui/ # User interface framework
│ └── ...
├── examples/ # Example applications
├── docs/ # Documentation
├── tools/ # Development tools
├── tests/ # Test suites
└── build.zig # Build configuration
// The examples directory has been removed in the latest refactoring.
# Debug build
zig build
# Release build
zig build -Doptimize=ReleaseFast
# Run tests
zig build test
# Generate documentation
zig build docs
We follow strict coding standards to ensure quality and consistency. See Coding Standards for details.
Key principles:
catch unreachable
)The codebase has undergone significant refactoring:
See Refactoring Roadmap for details.
We welcome contributions! Please see Contributing Guidelines for guidelines.
Areas of interest:
Linux Window System Implementation
Enhanced Graphics Features
Physically-Based Audio
Performance Optimization
This project is licensed under the MIT License - see the LICENSE file for details.
MFS Engine - Building the future of game development with Zig 🚀