This repository is a template you can use to setup a project that uses NasNas game framework.
Requirements :
- CMake >=3.10 installed (check with
cmake --version
). - A compiler (MSVC, gcc or clang)
- Optional: SFML2.5 installed
Follow these 3 steps :
- Clone this repository and update NasNas :
git clone --recurse https://github.com/Madour/NasNas-game-template MyNewGame
cd MyNewGame
git submodule update --remote
-
Open
CMakeLists.txt
file and set your custom configurations in the "User Configuration" section. -
Now, you are ready to build :
cmake -Bbuild .
cmake --build build -j4
If everything went fine, go ahead and run the binary file at the root of the folder. You'll see a black window with "Hello World !" displayed.
Now you are ready to use NasNas to create awesome games 🎉!
A tutorial is available to get you started !
If you got errors during compilation, please open a new GitHub Issue, I'll try to help you :)