2023-05-20 21:27:42 +00:00
|
|
|
import std.stdio;
|
|
|
|
|
|
|
|
import gameengine.core.engine;
|
2023-05-21 13:02:53 +00:00
|
|
|
import gameengine.math.types;
|
2023-05-20 21:27:42 +00:00
|
|
|
import gameengine.renderer.renderer;
|
|
|
|
import gameengine_rsdl;
|
|
|
|
|
|
|
|
import core.thread;
|
|
|
|
|
|
|
|
void main() {
|
2023-05-21 17:21:16 +00:00
|
|
|
Renderer renderer = new RSDL("test", IntVec2(800, 600));
|
2023-05-20 21:27:42 +00:00
|
|
|
Engine engine = new Engine(renderer);
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
engine.runNodeProcesses();
|
2023-05-21 13:02:53 +00:00
|
|
|
renderer.clearScreen(Color(255, 0, 255, 255));
|
|
|
|
renderer.renderCurrent();
|
|
|
|
Thread.sleep(16.msecs);
|
2023-05-20 21:27:42 +00:00
|
|
|
}
|
|
|
|
}
|