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. :-)
Visit our wiki to see tutorials and documentation:
https://github.com/deslon/supernova/wiki
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)
#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);
}