Skip to content

ahnan4arch/Supernova

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supernova Game Engine

www.supernovaengine.org

Supernova is a free and open source cross-platform game engine for create 2D and 3D projects with Lua or C++. It is lightweight and promote the simplest way to do the best results.

Licensed under MIT license, you can use freely for whatever you want, including commercial projects.

Now it supports:

  • Android
  • iOS
  • Web (with Emscripten)

For future versions:

  • Windows
  • OSX
  • Linux

Supernova is NOT ready for Production!

Please, don't try. We are under development. :-)

Getting started

Visit our wiki to see tutorials and documentation:

https://github.com/deslon/supernova/wiki

Code sample

Triangle Hello World (Lua)

Supernova.setCanvasSize(1000,480)

cena = Scene()
triangulo = Shape()

triangulo:addVertex(0, 100, 0)
triangulo:addVertex(-50, -50, 0)
triangulo:addVertex(50, -50, 0)

triangulo:setPosition(300,300,0)
triangulo:setColor(0.6, 0.2, 0.6, 1)

cena:addObject(triangulo)

Supernova.setScene(cena)

Triangle Hello World (C++)

#include "Supernova.h"

#include "Scene.h"
#include "Shape.h"
#include "Camera.h"

Shape triangulo;
Scene cena;

void init(){
    Supernova::setCanvasSize(1000,480);

    triangulo.addVertex(Vector3(0, 100, 0));
    triangulo.addVertex(Vector3(-50, -50, 0));
    triangulo.addVertex(Vector3(50, -50, 0));

    triangulo.setPosition(Vector3(300,300,0));
    triangulo.setColor(0.6, 0.2, 0.6, 1);
    cena.addObject(&triangulo);

    Supernova::setScene(&cena);
}

About

Game engine cross-platform for 2D and 3D projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 73.2%
  • C++ 6.5%
  • Shell 5.9%
  • Assembly 4.4%
  • Makefile 3.0%
  • Roff 2.7%
  • Other 4.3%