From a216cfc457cdde754c5673e9423d00147a2f1574 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Mon, 6 Jan 2025 13:34:27 +0100 Subject: fps in hud --- game/coins/CoinSubScene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/coins/CoinSubScene.cpp') 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(size.x / 2).active = false; + coin.add_component((size.x / 2)-3).active = false; crepe::OptionalRef coin_sprite = coin.add_component(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; -- cgit v1.2.3