Commit Graph

4 Commits

Author SHA1 Message Date
Ty3r0X 14f82abb25
Added a counter system
Each time the square is touched, the counter increments. It uses
SDL_ttf to render the counter. As simple as this addition may be,
I had to surprisingly add a buttload of code to render a damn
number. Low level programming is such a lovely experience :').
2023-12-30 20:53:54 +02:00
Ty3r0X 97b8d9379f
Refactored event logic
SDL_Delay() causes the event queue to bottleneck, so in order to improve
the program's responsiveness, I implemented a while loop to clear the
queue entirely before the next main loop iteration, thus improving the
mouse / kb detection.
2023-12-30 10:15:15 +02:00
Ty3r0X 81302d524b
If you touch the square, coords are spewed to stdout 2023-11-24 22:27:24 +02:00
Ty3r0X 56be860bdf
Where did the source code go? 2023-11-24 19:37:22 +02:00