Yep, here is my contribution to GameDev 2018 Missile Command.
The source code is inside the zip :https://github.com/wybifu/missile_command/archive/master.zip
github: https://github.com/wybifu/missile_command
Windows users: Windows_version.exe
Linux users: Linux_version
or just compile it for any other OS.
language: C
library: SDL2
I feel that I have to explain myself as the code is awful: I was just writing as I was thinking when a new Idea popup I just hardcoded it and didn't care if it fits the rest of the code that can provide strange lines like:
if (((Agent *)(((Agent *)(a->ptr0))->ptr1)) != NULL)
((Agent *)(((Agent *)(a->ptr0))->ptr1))->visible = BKP_F
YEAH !! Absolutely horrible.
a small video of gameplay :
another shootscreen for pleasure:
Nice work. I like all the different kinds of turrets you can use.
And don't feel bad about dirty code. In a game jam/challenge situation, it's not about academically correct code. It's about getting shit done and out the door. That said, it's usually a good exercise to go back and try and refactor the code into something more "correct". Developing that skill can help you go far in development. - Make it work.(hacky) Make it right. (clean) Make it fast. (optimize if necessary)