aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerBulletScript.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:46:14 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:46:14 +0100
commit6112da75f973b1099fa95fcd9d3113c00302f5b4 (patch)
tree073c4dacfc2c2530d52000ee8865317584898431 /game/player/PlayerBulletScript.cpp
parent7f7c5c56dce30d47c32fb57fad6d839d0990b054 (diff)
player bullet working
Diffstat (limited to 'game/player/PlayerBulletScript.cpp')
-rw-r--r--game/player/PlayerBulletScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerBulletScript.cpp b/game/player/PlayerBulletScript.cpp
index e1637c2..50b6617 100644
--- a/game/player/PlayerBulletScript.cpp
+++ b/game/player/PlayerBulletScript.cpp
@@ -20,7 +20,7 @@ void PlayerBulletScript::fixed_update(crepe::duration_t dt){
vec2 half_screen = camera.viewport_size / 2;
float despawn_location = cam_transform.position.x + half_screen.x + 50;
- if(transform.position.x < despawn_location){
+ if(transform.position.x > despawn_location){
this->despawn_bullet();
}
}