• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    C++
  • License
    zlib License
  • Created almost 14 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easy to use cross-platform 2D game library for C++

JNGL - Just a Neat Game Library

🌐 Website 🏃 Quickstart 🎓 Tutorial 📚 Documentation

Chat

An easy to use C++ game library for Linux, Windows, macOS, Android, iOS, Xbox, the Nintendo Switch, and the Web.

Portal Dogs running on the Switch

Building

cmake -Bbuild
cmake --build build
./build/jngl-test

Linux

Ubuntu

sudo apt-get install libgl1-mesa-dev libfreetype6-dev libfontconfig1-dev libxxf86vm-dev \
libpng-dev libvorbis-dev libopenal-dev cmake g++ \
libwebp-dev git libsdl2-dev

Fedora

sudo dnf install fontconfig-devel freetype-devel libvorbis-devel libwebp-devel \
cmake SDL2-devel openal-soft-devel gcc-c++

Arch Linux

pacman -Syu --needed cmake gcc sdl2 pkg-config fontconfig libwebp openal libvorbis

Windows

MSYS2 / MinGW-w64

Set up MSYS2 and install the following in a MinGW-w64 Win64 Shell:

pacman -Syu --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-openal \
mingw-w64-x86_64-freetype mingw-w64-x86_64-libvorbis mingw-w64-x86_64-libwebp \
mingw-w64-x86_64-dlfcn mingw-w64-x86_64-cmake make mingw-w64-x86_64-gdb \
mingw-w64-x86_64-libtheora

Visual Studio 2017 or newer

cmake -Bbuild -DFETCHCONTENT_QUIET=0

and then open build/jngl.sln.

Mac

Use Homebrew to install the build dependencies:

brew install sdl2 freetype libvorbis webp pkg-config cmake

Android

Install the Android SDK and let ANDROID_HOME point to it. In the Android SDK Manager install the NDK build tools. Type the following to run the test app via ADB:

make -C android run

You can also open the android/test folder in Android Studio and build from there.

iOS

Generate a Xcode project using CMake:

cmake -Bbuild-ios -GXcode -DCMAKE_TOOLCHAIN_FILE=cmake/iOS.toolchain.cmake -DIOS_PLATFORM=SIMULATOR

Open and build build-ios/jngl.xcodeproj in Xcode.

Xbox

cmake -Bbuild-uwp -DCMAKE_SYSTEM_NAME=WindowsStore "-DCMAKE_SYSTEM_VERSION=10.0"

and then open build-uwp/jngl.sln.

More Repositories

1

poly2tri

2D constrained Delaunay triangulation library
C++
372
star
2

chipmunkpp

Chipmunk Physics C++ wrapper
C++
40
star
3

coffeepp

Little language that compiles into C++
C++
30
star
4

smart_cmd

Runs cmd.exe in the current path of your Windows Explorer
C++
15
star
5

pwcalculator

Automatically calculate strong passwords
Python
14
star
6

clicolors

HTML
10
star
7

ja

Frontend for Ninja focusing on a faster edit, compile, debug cycle
Python
8
star
8

pwcalculator-qt

Automatically calculate strong passwords
C++
4
star
9

jntetri

Tetris clone using the JNGL 2D library
C++
3
star
10

minclude

Remove unneeded include directives from your C/C++ project
Python
3
star
11

jngl-rocket

Integrating RmlUi (libRocket) with JNGL
C++
2
star
12

jngl-starter

JNGL project template
C++
2
star
13

sleeptimer

Shutdown timer for Linux and Windows
Python
2
star
14

taluka

Taluka IDE written in Python (Gtk+) and based on gedit
Python
1
star
15

jhasse.github.io

HTML
1
star
16

dotfiles

configuration files for emacs, vim, ...
Vim Script
1
star
17

mingw-docker

Docker image with MinGW cross-compiler based on Fedora
1
star
18

cpp-style-guide

Style guide for C++
1
star
19

android-ndk-docker

Docker image containing the Android SDK and NDK
Dockerfile
1
star
20

coreutilspp

Reimplementation of some of the GNU Coreutils in C++, useful to be used in Windows' cmd.exe.
C++
1
star
21

boost-libs

Boost binaries for Windows, Mac and iOS
C++
1
star
22

binpath

Get the directory path of the running binary of a C++ program
C
1
star
23

android-qt-docker

Docker image with Qt for Android
Dockerfile
1
star
24

mingw32-docker

Docker image with MinGW cross-compiler (32 bit) based on Fedora 27
1
star