aboutsummaryrefslogtreecommitdiff
path: root/game/coins
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-06 13:34:27 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-06 13:34:27 +0100
commita216cfc457cdde754c5673e9423d00147a2f1574 (patch)
treec38213bb40881cda872fb4b9720d3349fb3e3e9c /game/coins
parent3297acbb3687d8a98a11a1ca26a766db3d85501b (diff)
fps in hud
Diffstat (limited to 'game/coins')
-rw-r--r--game/coins/CoinSubScene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/coins/CoinSubScene.cpp b/game/coins/CoinSubScene.cpp
index 58f74ef..604af78 100644
--- a/game/coins/CoinSubScene.cpp
+++ b/game/coins/CoinSubScene.cpp
@@ -26,10 +26,10 @@ int CoinSubScene::create(Scene & scn){
.kinematic_collision = false,
.collision_layers = {COLL_LAY_PLAYER},
});
- coin.add_component<CircleCollider>(size.x / 2).active = false;
+ coin.add_component<CircleCollider>((size.x / 2)-3).active = false;
crepe::OptionalRef<crepe::Sprite> coin_sprite = coin.add_component<Sprite>(Asset{"asset/coin/coin1_TVOS.png"}, Sprite::Data{
- .sorting_in_layer = 100,
- .order_in_layer = 100,
+ .sorting_in_layer = SORT_IN_LAY_COINS,
+ .order_in_layer = 0,
.size = size,
});
coin_sprite->active = false;