Starts a JNGL game without any logic and just renders a black screen.
Clone this folder and open it in VS Code. If it's the first time you develop C++/JNGL you have to install the dependencies documented in the JNGL GitHub page. After setting up everything you only have to press F5 and the project will be built and started.
Happy developing!
For development on Windows you need to install:
- Visual Studio please make sure to select Desktop development with C++ while installing.
- CMake
- Git
- optional GitHub Desktop
Steps to build your first JNGL Game:
- Press the "Use this Template" Button and create your own repo.
- Clone the new repository with GitHub Desktop or on the console with
git clone --recurse-submodules
. - Then open a console in your local project folder and run
cmake -Bbuild -DFETCHCONTENT_QUIET=0
, it will take a while and create abuild
folder. - In the
build
folder there is now ajnglexample.sln
which you can open with Visual Studio. - In the solution explorer in Visual Studio you have to right click
jnglexample
and selectSet as Startup Project
. - Now you can press Debug or F5 to run your project.
- Have fun!
- Install Boost using Homebrew:
brew install boost
- Run the following in the project folder after using this template:
mkdir subprojects/jngl/include/ios
ln -s /opt/homebrew/include/boost subprojects/jngl/include/ios/boost
cmake -Bbuild-ios -GXcode -DCMAKE_TOOLCHAIN_FILE=subprojects/jngl/cmake/iOS.toolchain.cmake -DIOS_PLATFORM=OS
- Open
jnglexample.xcodeproj
inside the newly createdbuild-ios/
folder. - Connect an iOS device, select the "jnglexample" target and hit run.