From e9082de7d114ce024a884cac38c545c99de4026a Mon Sep 17 00:00:00 2001 From: Max-001 Date: Wed, 8 Jan 2025 09:51:06 +0100 Subject: Finnished collision --- game/GameScene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/GameScene.cpp') diff --git a/game/GameScene.cpp b/game/GameScene.cpp index 02af8db..97f62e2 100644 --- a/game/GameScene.cpp +++ b/game/GameScene.cpp @@ -80,7 +80,7 @@ void GameScene::load_scene() { boom_audio.add_component(boom_audio_asset); // zapper, laser and missile (below) for testing purpose only!!! - GameObject zapper = new_object("zapper", "zapper", vec2(1000, 0)); + GameObject zapper = new_object("zapper", "zapper", vec2(1000, 200)); Asset zapper_asset {"asset/obstacles/zapper/regular_zappers/zapEffect.png"}; Sprite & zapper_sprite = zapper.add_component( zapper_asset, @@ -96,7 +96,7 @@ void GameScene::load_scene() { .collision_layer = COLL_LAY_ZAPPER, }); zapper.add_component(vec2(100, 100)); - GameObject laser = new_object("laser", "laser", vec2(2000, 0)); + GameObject laser = new_object("laser", "laser", vec2(2000, 200)); Asset laser_asset {"asset/obstacles/laser/laserPower.png"}; Sprite & laser_sprite = laser.add_component( laser_asset, @@ -112,7 +112,7 @@ void GameScene::load_scene() { .collision_layer = COLL_LAY_LASER, }); laser.add_component(vec2(100, 100)); - GameObject missile = new_object("missile", "missile", vec2(4000, 0)); + GameObject missile = new_object("missile", "missile", vec2(4000, 200)); Asset missile_asset {"asset/obstacles/missile/missile.png"}; Sprite & missile_sprite = missile.add_component( missile_asset, -- cgit v1.2.3