Magma is yet another set of tools for game development in C.
You would need Visual Studio 2022 with both MSVC and the Windows SDK installed.
Magma uses Premake for project generation. On Windows run:
.\tools\premake5\premake5.exe vs2022All you have to do is open Magma.sln generated by premake, then build it using Visual Studio.
However, if you want to build in a non-GUI way, you can set up your path environment variable to use MSBuild.exe. So now you can run:
MSBuild Magma.slnMagma comes with a simple example to make sure it's working, if compilation was successful, you will find the output executable as bin/Release/sandbox.exe. You can execute this from CLI using:
.\bin\Release\Sandbox.exeNOTE: This has been tested on Arch Linux only, please report any bugs if you encounter any on other linux distrobutions.
Another NOTE: Please make sure you have Xorg installed, if you're on Wayland you can use Xwayland.
sudo pacman -Sy base-devel premake vulkan-devel libegl xorg-server
yay -S spirv-cross # or paruWe will generate the project files as Makefiles.
./generate.shFor this, you can use the Makefiles generated by premake, just run:
makeIf compilation was successful, you can find the sandbox executable at bin/Release/sandbox. Run using:
./bin/Release/Sandbox