From 6879f036aebe8f279411fa30f2d7ae1e0614308c Mon Sep 17 00:00:00 2001 From: Max-001 Date: Sun, 12 Jan 2025 10:55:17 +0100 Subject: Bug fix: Set same box collider as Game --- game/preview/NpcSubScene.cpp | 2 +- game/preview/PrevPlayerSubScene.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'game/preview') diff --git a/game/preview/NpcSubScene.cpp b/game/preview/NpcSubScene.cpp index 9fddb78..5ededb6 100644 --- a/game/preview/NpcSubScene.cpp +++ b/game/preview/NpcSubScene.cpp @@ -49,7 +49,7 @@ NpcSubScene::NpcSubScene(Scene & scn) { .looping = true, } ); - npc.add_component(vec2 {50, 50}); + npc.add_component(vec2 {40, 50}); npc.add_component(Rigidbody::Data { .mass = 10, diff --git a/game/preview/PrevPlayerSubScene.cpp b/game/preview/PrevPlayerSubScene.cpp index 831167a..2403551 100644 --- a/game/preview/PrevPlayerSubScene.cpp +++ b/game/preview/PrevPlayerSubScene.cpp @@ -76,7 +76,7 @@ PrevPlayerSubScene::PrevPlayerSubScene(Scene & scn) { .collision_layers = {COLL_LAY_BOT_TOP, 100}, .collision_layer = COLL_LAY_PLAYER, }); - player.add_component(vec2(50, 50)); + player.add_component(vec2(40, 50)); player.add_component().set_script(); AudioSource & audio = player.add_component(Asset {"asset/music/level.ogg"}); -- cgit v1.2.3