aboutsummaryrefslogtreecommitdiff
path: root/game/PlayerSubScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2024-12-21 12:25:27 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2024-12-21 12:25:27 +0100
commite7599e648ea24d5e8a27bd9f4f162ef1a7c53d21 (patch)
treeda609faa3974250a6543373e3fe81e29fec1a90d /game/PlayerSubScene.cpp
parent94f99f931e22b5eecbc26b19038788e620ff27ee (diff)
Added collision layers to Config.h
Diffstat (limited to 'game/PlayerSubScene.cpp')
-rw-r--r--game/PlayerSubScene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/PlayerSubScene.cpp b/game/PlayerSubScene.cpp
index d81dd34..b361a82 100644
--- a/game/PlayerSubScene.cpp
+++ b/game/PlayerSubScene.cpp
@@ -56,7 +56,8 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
.gravity_scale = 20,
.body_type = Rigidbody::BodyType::DYNAMIC,
.linear_velocity = vec2(100, 0),
- .collision_layer = 10,
+ .collision_layers = {COLL_LAY_BOT_TOP},
+ .collision_layer = COLL_LAY_PLAYER,
});
player.add_component<BoxCollider>(vec2(50, 50));
player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false;