diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-21 12:25:27 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-21 12:25:27 +0100 |
commit | e7599e648ea24d5e8a27bd9f4f162ef1a7c53d21 (patch) | |
tree | da609faa3974250a6543373e3fe81e29fec1a90d /game/PlayerSubScene.cpp | |
parent | 94f99f931e22b5eecbc26b19038788e620ff27ee (diff) |
Added collision layers to Config.h
Diffstat (limited to 'game/PlayerSubScene.cpp')
-rw-r--r-- | game/PlayerSubScene.cpp | 3 |
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; |