feat: (snake) collision with head and body

This commit is contained in:
DarthMooMancer
2025-08-29 17:25:09 -04:00
parent 157933c122
commit 684041b3c1
7 changed files with 55 additions and 38 deletions
+3 -2
View File
@@ -12,12 +12,13 @@ struct Window {
int m_reset;
int m_previous_reset;
void draw_score();
void draw_window();
void clear_window();
void tick(double frames_per_second);
void kill(bool &running);
void update_score(Fruit &fruit, Body &body);
void update_loop(int fps);
void update_display(int fps);
void check_exit(bool &running, Body &body, bool &collision);
};
#endif // WINDOW_HPP