diff options
Diffstat (limited to 'game/coins')
-rw-r--r-- | game/coins/CoinSubScene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/game/coins/CoinSubScene.cpp b/game/coins/CoinSubScene.cpp index d30f5a4..58f74ef 100644 --- a/game/coins/CoinSubScene.cpp +++ b/game/coins/CoinSubScene.cpp @@ -8,6 +8,7 @@ #include <concepts> #include <iostream> #include "CoinScript.h" +#include "../Config.h" using namespace crepe; using namespace std; @@ -23,6 +24,7 @@ int CoinSubScene::create(Scene & scn){ coin.add_component<Rigidbody>(Rigidbody::Data{ .body_type = Rigidbody::BodyType::KINEMATIC, .kinematic_collision = false, + .collision_layers = {COLL_LAY_PLAYER}, }); coin.add_component<CircleCollider>(size.x / 2).active = false; crepe::OptionalRef<crepe::Sprite> coin_sprite = coin.add_component<Sprite>(Asset{"asset/coin/coin1_TVOS.png"}, Sprite::Data{ |