final commit for the time being

This commit is contained in:
DarthMooMancer
2025-08-30 13:26:31 -04:00
parent b0393c65f2
commit cfa0e52705
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ void Body::check_new_tail() {
}
}
void Body::get_new_points(Head &head) {
void Body::get_new_pos(Head &head) {
for (int i = 0; i < m_body.size(); i++) {
m_body.front().m_previous_tail_pos.set_new_point(
head.m_previous_head.m_row,
+3 -3
View File
@@ -28,10 +28,10 @@ int main () {
running = false;
}
head.get_new_pos();
body.get_new_points(head);
head.m_previous_head.set_new_point(head.m_head.m_row, head.m_head.m_col, head.m_head.m_direction);
fruit.get_new_pos(window.m_board, head, body.m_score);
body.get_new_pos(head);
head.m_previous_head.set_new_point(head.m_head.m_row, head.m_head.m_col, head.m_head.m_direction);
window.update_display(fruit, head, body);
}