feat: add Windows runtime support

This commit is contained in:
emil28092005
2026-08-26 16:50:15 +03:00
parent 8e40d8c7a7
commit eec26d60f4
6 changed files with 103 additions and 7 deletions
+28 -1
View File
@@ -16,7 +16,7 @@ AI-Native 3D game engine with pure P/Invoke Vulkan 1.3 render backend.
- **ECS** — Flecs.NET with Transform, Mesh, Material, Light, Camera, RigidBody components
- **SDL3 Window** — cross-platform, Vulkan surface
## Quick Start
## Quick Start — Linux (main platform)
```bash
# Build
@@ -38,6 +38,33 @@ dotnet build CORTEX_ENGINE.sln -c Debug
dotnet test tests/Engine.Tests/Engine.Tests.csproj -c Debug
```
## Quick Start — Windows x64
PowerShell scripts select the Windows native runtime assets explicitly; Bash is
not required:
```powershell
# Build and restore Windows native dependencies
dotnet restore .\CORTEX_ENGINE.sln -r win-x64
dotnet build .\CORTEX_ENGINE.sln -c Debug -r win-x64 --no-restore
# Run the engine
.\scripts\run.ps1
# Run a demo scene
.\scripts\run.ps1 --scene shooter
# Run with AI/MCP server
.\scripts\start_mcp_engine.ps1 -Port 5000
# Run tests
dotnet test .\tests\Engine.Tests\Engine.Tests.csproj -c Debug -r win-x64
```
The project keeps Linux as the default RID on Linux hosts and selects `win-x64`
automatically on Windows. Use `-r win-x64` when cross-publishing from another
OS.
## Controls
- **WASD** — move camera