项目作者: sebbekarlsson

项目描述 :
💿 Engine for interactive media & games
高级语言: C++
项目地址: git://github.com/sebbekarlsson/NINAGE-Engine.git
创建时间: 2017-01-04T19:27:51Z
项目社区:https://github.com/sebbekarlsson/NINAGE-Engine

开源协议:GNU General Public License v3.0

下载


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

  1. #include <ninage/Ninage.h>
  2. #include "MainScene.h" // your scene
  3. Ninage *app;
  4. const Uint8 *state = SDL_GetKeyboardState(NULL);
  5. void Ninage::main() {
  6. MainScene* scene = new MainScene();
  7. this->addScene(scene);
  8. }
  9. int main(int argc, char* args[]) {
  10. app = new Ninage();
  11. return app->run();
  12. }

Documentation

Documentation
Full Documentation

Getting Started

  • Make sure you have the requirements.

    Run the following commands:

    1. git submodule init
    2. git submodule update
    3. 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.

  1. ./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:

  1. cd libninage
  2. 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:

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

The app should be up and running.

Having problems with libjpeg?

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

License

GNU General Public License