changing cmake
This commit is contained in:
+7
-7
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user