Ngine

Ngine is a C++ 17 library for producing 2D games.


Travis (.org) AppVeyor Discord GitHub GitHub last commit (branch)

Features

Installation

You must build Ngine from source, Ngine uses CMake (3.12 minimum) to generate project files. Use this to generate build files for the default target. See the Wiki for more detailed instructions for your platform/target. Download Ngine from GitHub.

mkdir build & cd build
cmake ..

Usage

This shows you how to launch your game class (which you have to write I’m afraid)…

#include <Ngine.hpp>

NGINE_GAME_ENTRY {
    // Game config
    ngine::GameConfig gameConfig;
    gameConfig.TargetWidth = 1280;
    gameConfig.TargetHeight = 768;
    
    // Window config
    ngine::WindowConfig windowConfig;
    windowConfig.Resizable = true;
    windowConfig.InitialWidth = 1280;
    windowConfig.InitialHeight = 768;
    
    // Create game
    auto game = YourGameClass(gameConfig, windowConfig);
    
    NGINE_RUN_GAME(game);
    
    return 0;
}

Built with

Contributing

Pull requests through GitHub are welcome. For major changes, check if it is an approved feature on the GitHub projects tab. If it isn’t, please open a GitHub issue or chat with us on Discord.

License

Apache 2.0

Download

Download Ngine from GitHub.