So, a couple weeks ago I made a really stuffty game, completely from scratch using my knowledge of C. It's terrible, but I'm actually kinda of proud how I managed to accomplish SOMETHING with my bare-bones programming code.
It's basically a "Dodge this" game, but you can also shoot as a last resort. Unfortunately, collision detection is HORRIBLE.
The reason? It's the same reason for the bottom half of the screen flashing; the command prompt prints characters sequentially, so characters at the top will stay the longest, while the ones at the bottom have the least time on screen. This setup also means that the bullet and lines can "skip over" each other. It's annoying, but a true fix would require me writing an entirely new screen refresh system.
Anyways, I had fun with it.
Download:
https://www.dropbox.com/s/vecsqn1dlslqu7o/cmdlength_4.exeSauce:
https://www.dropbox.com/s/rnjozz0zw492edt/cmdlength_4.cIf you guys could give some advice, that would be great. In future, I'd like to start using classes for my enemies (I got schooled in how to make classes in C), but the whole screen refresh thing has me puzzled.