Write a tank game with printf - Part 3 (Final)
Coding Unconditionally Coding Unconditionally
113 subscribers
2,143 views
0

 Published On May 5, 2024

(English captions available!)

This is part 3 of a mini series where I demonstrate a small project to build a tank game in the C programming language with only the standard library. The game is rendered directly inside a terminal with the "printf" function. The game is written and tested on Ubuntu 22.04 and should work as is in most Unix systems with just the standard environment, but it will NOT work on Windows without modifications.

This part we are finally finishing the game by implementing movements, shooting, collision detection, etc. The raw code for this part can be found on: pastebin.com/brWFUjPJ

Chapters:
00:00 - Tank movement
02:55 - Introduce "Coloring"
05:42 - Detect enemy and losing
09:02 - Bullet setup
13:51 - Flying bullets and winning
16:18 - Enemy movement
22:21 - Conclusion

show more

Share/Embed