Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

sebbekarlsson/NINAGE-Engine

Repository files navigation

NINAGE ENGINE

Ninage Is Not A Game Engine

(But it can be used as a game engine)

It's purpose is to be an interactive media engine, games just happen to fall into that category.

Quickstart

The minimal code you need to run a NINAGE application

#include <ninage/Ninage.h>
#include "MainScene.h" // your scene


Ninage *app;
const Uint8 *state = SDL_GetKeyboardState(NULL);

void Ninage::main() {
    MainScene* scene = new MainScene();
    this->addScene(scene);
}

int main(int argc, char* args[]) {
    app = new Ninage();
    return app->run();
}

Documentation

Documentation
Full Documentation

Getting Started

Run the following commands:

    git submodule init
    git submodule update
    git submodule sync

This will setup the project and make sure you have everything.

Development

To make it easier to work on the core engine / lib, you can run the develop.sh script.

    ./develop.sh <directory-name-in-`NINAGE-examples`>

The develop.sh script will do the following:

  • Compile and install the core engine
  • Compile and launch a specified example.

Manual Development

Compiling and installing the engine:

    cd libninage
    sudo make install

This will install the engine into your system / computer.

Compiling an example

To compile an example, make sure you have installed the engine first, following the steps above.

Run these commands to compile and start the testgame:

    cd NINAGE-examples/<example-dir>
    make
    ./app.out

The app should be up and running.

Having problems with libjpeg?

    wget -c http://www.ijg.org/files/jpegsrc.v8d.tar.gz
    tar xzf jpegsrc.v8d.tar.gz
    cd jpeg-8d
    ./configure
    make
    cp ./.libs/libjpeg.8.dylib /usr/local/opt/jpeg/lib

License

GNU General Public License