aboutsummaryrefslogtreecommitdiff
path: root/game/player
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 11:10:05 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 11:10:05 +0100
commita9c6e86e4d95f4f4986be9016779dcc26a925862 (patch)
tree27fb51d2b1ab0d260cfc6b9ebed4c7fceedcee34 /game/player
parent1de7cd3a1265edd2c247f5f847a5665bafd78faa (diff)
animation working + removed bullet colliding with dead enemies
Diffstat (limited to 'game/player')
-rw-r--r--game/player/PlayerScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp
index c3843ca..0fadade 100644
--- a/game/player/PlayerScript.cpp
+++ b/game/player/PlayerScript.cpp
@@ -159,7 +159,7 @@ void PlayerScript::fixed_update(crepe::duration_t dt) {
if (current_jetpack_sound > 7) {
current_jetpack_sound = 0;
}
- } else if (transform.position.y == 195) {
+ } else if (transform.position.y == 200) {
Rigidbody & rb = this->body;
if (prev_anim != 0 && rb.data.linear_velocity.x != 0) {
for (Animator & anim : animators) {