changing cmake

This commit is contained in:
DarthMooMancer
2025-10-25 00:40:18 -04:00
parent 096bd257fe
commit b43f9972d7
3 changed files with 43 additions and 19 deletions
+7 -7
View File
@@ -97,13 +97,13 @@ int main() {
player.handle_movment();
player.get_horizontal_collision(wall_list);
if(player.rect.getPosition().y > HEIGHT) {
player.rect.setPosition({ player.rect.getPosition().x, HEIGHT - TILESIZE - player.rect.getSize().y });
player.set_velocity_y(0);
while(player.get_vertical_bottom_collision(wall_list) || player.get_vertical_top_collision(wall_list)) {
player.rect.setPosition({ player.rect.getPosition().x, player.rect.getPosition().y - TILESIZE - player.rect.getSize().y });
}
}
// if(player.rect.getPosition().y > HEIGHT) {
// player.rect.setPosition({ player.rect.getPosition().x, HEIGHT - TILESIZE - player.rect.getSize().y });
// player.set_velocity_y(0);
// while(player.get_vertical_bottom_collision(wall_list) || player.get_vertical_top_collision(wall_list)) {
// player.rect.setPosition({ player.rect.getPosition().x, player.rect.getPosition().y - TILESIZE - player.rect.getSize().y });
// }
// }
player.handle_gravity();
if(!player.get_vertical_bottom_collision(wall_list)) {