Run makecom.bat
in DOS to build main.com
. Target CPU is set to 8086. The batch file can be easily changed to build a real mode EXE.
The main loop in main.c
looks like this:
while (!quit) {
update_time();
update_input();
// TODO: Do game logic and simulation here
vga_vsync();
// TODO: Draw here
print_time_and_fps();
}