put on the backburner

This commit is contained in:
DarthMooMancer
2025-09-12 12:56:09 -04:00
parent 0d8e191975
commit 3d184ee7a7
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -40,6 +40,13 @@ void PointCollection::move() {
void PointCollection::check_collision() {
for(int i = m_point_list.size() - 1; i >= 0; i--) {
if(m_point_list[i].m_direction == 'u') {
// if(m_point_list[i + 1].m_row == m_point_list[i].m_row || m_point_list[i - 1].m_row == m_point_list[i].m_row) {
// if(m_point_list[i + 1].m_col == m_point_list[i].m_col || m_point_list[i - 1].m_col < m_point_list[i].m_col) {
// if(m_point_list[i].m_row > m_point_list[i + 1].m_row || m_point_list[i].m_row > m_point_list[i - 1].m_row) {
// m_point_list[i].m_row += 1;
// }
// }
// }
}
if(m_point_list[i].m_direction == 'd') {
}
+1
View File
@@ -15,6 +15,7 @@ int main() {
collection.m_point_list.back().assign();
while (running) {
collection.check_collision();
collection.move();
window.draw_window(collection);
}