aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2024-12-24 12:10:28 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2024-12-24 12:10:28 +0100
commit192aea3112af0b36f6f26670e66c7e24926c579a (patch)
treeab7cf094850572d4f31e945d884339551cd8b08d /game/player/PlayerSubScene.cpp
parent46cc8767338578cbacb5a61bf50bbca71ea8e538 (diff)
Added collision animations
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r--game/player/PlayerSubScene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp
index ccf3d42..812d99a 100644
--- a/game/player/PlayerSubScene.cpp
+++ b/game/player/PlayerSubScene.cpp
@@ -143,7 +143,8 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
.gravity_scale = 20,
.body_type = Rigidbody::BodyType::DYNAMIC,
.linear_velocity = vec2(100, 0),
- .collision_layers = {COLL_LAY_BOT_TOP},
+ .collision_layers
+ = {COLL_LAY_BOT_TOP, COLL_LAY_ZAPPER, COLL_LAY_LASER, COLL_LAY_MISSILE},
.collision_layer = COLL_LAY_PLAYER,
});
player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false;