Winball is a little pinball game made for MS-DOS using Allegro. Winball was made for Retrospect. The code is messy, because this was my first time using C, but all things considered I think it turned out good.
If you're reading this from Low Skies, the hours are wrong-- I spent about 12 hours on this during the last few days of Retrospect, but my Hackatime was broken for a good chunk of that.
Winball can be run on any DOS emulator. The easiest way to compile Winball with Allegro is likely DJGPP, a C/C++ development system for DOS PCs.
- Download DJGPP from https://www.delorie.com/djgpp/zip-picker.html - Check the box for 'Allegro' under toolkits. Select an HTTP mirror if you don't want to use FTP.
- Download the listed zip files, and extract them all into the same folder. Clone Winball next to it.
- Mount the parent folder in DOSBOX (or your DOS emulator of choice):
mount c C:\path\to\folder
- Set the environment variables:
set PATH=C:\DJGPP\BIN;%PATH%
(Note: this is the path from inside the DOS emulator, not from your main system)set DJGPP=C:\DJGPP\DJGPP.ENV
cd
to the Winball folder, and compile it withgcc -o winball.exe main.c -lalleg
- Run
winball.exe
!
Video not working? Try watching it here.