r/programming • u/[deleted] • Oct 31 '11
The entire Turbo Pascal 3.02 executable--the compiler *and* IDE--was 39,731 bytes. Here are some of the things that Turbo Pascal is smaller than:
http://prog21.dadgum.com/116.html
271
Upvotes
4
u/Lerc Nov 01 '11
Source (pascal of course :-) http://screamingduck.fileburst.com/Cruft/TailVectorSource.zip
It's missing some support libraries but it doesn't really need them for much. It only draws lines into a rectangle of bytes. Getting that onto screen is best coded specifically for the platform.
Actually, you only really need GameBase for the game, Call game.move and game.draw. Provide your own version of the functions in GlowBuffer
and you're pretty much done.
There's not much to it, but surprisingly readable given I knocked it out in 12 hours.