final commit for the time being
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user