diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-03 21:02:48 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-03 21:02:48 +0100 |
commit | 5ae4e3f0e3ff1d111eaea54b7b0a0788203d9d72 (patch) | |
tree | abd7e7965eaff19c76daecb8a3f4514106562a09 /game/coins/CoinSubScene.cpp | |
parent | 209957a36c19968292032ead5974a695b22ffceb (diff) |
bug fix
Diffstat (limited to 'game/coins/CoinSubScene.cpp')
-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{ |