Caution
This Project is currently under development!
You must installed the D-Language compiler from dlang.org.
For an easy development, we recommend Jetbrains IntelliJ IDEA
with d-lang Plugin.
The Plugin works currently not on all Jetbrains
IDE's Versions.
Open the cloned directory with Jetbrains IntelliJ IDEA
(Version 2024.2
!) and you can start directly.
dub add coldbite
import std.stdio;
import core.runtime;
import coldbite;
import std.stdio;
class Game : BaseGame {
override void initialize() {
writeln("Game initialized");
setTitle("Example Game");
setSize(800, 600);
//setPosition(-1, -1);
//setFullscreen(true);
// [Optional] Set Renderer: Vulkan, OpenGL, DirectX
setRenderer(RendererType.Vulkan);
// Init your game
start();
}
override void running() {
writeln("GameLoop");
// Game-Loop
}
override void rendering() {
writeln("Render");
// Render your things
}
}
void main() {
Game game = new Game();
// Init your Game
game.initialize();
}