mikea/ztd
Zig Tower Defense
Zig Tower Defense
Status: Technological demo
This game was written by me during fall 2022 holidays to learn Zig and Data Oriented Design approach. It contains a highly optimized 2D sprite engine with custom OpenGL-based renderer.
To let the DOD shine, this project's goal was to push performance boundaries of the number of
units present in the simulation.
Currently on Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
the engine achieves up to
10*10^6 units/sec of single-threaded performance.
libglfw3-dev
Start: ./ztd
or ./ztd <level>
.
Available levels: level1
, level2
, level3
, stress1
Keys:
Requirements:
libglfw3-dev
packageCommands:
zig build
zig build run
zig build run -Drelease-fast=true -- [<level>]
./dev.sh dist
will build linux and win64 release .zip archives.
Underlying data structures:
Game engine:
Game:
src/
is licensed under GPL3.lib/
is licensed under respective original licenses.