Thanks to visit codestin.com
Credit goes to github.com

Skip to content

boxDev2008/Magma

Repository files navigation


Magma is yet another set of tools for game development in C.

Building from source:

Windows:

You would need Visual Studio 2022 with both MSVC and the Windows SDK installed.

Generating the project files:

Magma uses Premake for project generation. On Windows run:

.\tools\premake5\premake5.exe vs2022

Building the project:

All 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.sln

Running the sandbox:

Magma 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.exe

Linux:

NOTE: 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.

Arch Linux:

sudo pacman -Sy base-devel premake vulkan-devel libegl xorg-server
yay -S spirv-cross # or paru

Generating the project files:

We will generate the project files as Makefiles.

./generate.sh

Building the project:

For this, you can use the Makefiles generated by premake, just run:

make

Running the sandbox:

If compilation was successful, you can find the sandbox executable at bin/Release/sandbox. Run using:

./bin/Release/Sandbox

About

A simple set of tools for game/app development in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages