An ASCII-art game like Space Invaders using Curses.
(c) 2001, 2013 Thomas Munro
This is short bit of C code I wrote back in 2001 and published on my erstwhile home page:
Looking at it more than a decade later, there are two unforgivable flaws!
- It does illegal things inside a signal handler!
- It uses global variables in order to do so.
I really must get around to fixing this. It should probably use select for timing instead signals.
I am embarassed to admit that I did not do anything with several patches that people have sent me by email over the years in the pre-Github era to make it work on various platforms. Sorry!
Original vs ASCII:
Screen shots (I think this must have been 2001-era Gnome Terminal!):