aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 12:03:28 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 12:03:28 +0100
commitc9c9702edc58ff8f40b13dc6b86b216421f79e9b (patch)
tree3f3e710735105cbbd63ebd4f320c88fbc0ecfa0c /game/GameScene.cpp
parent8055d401fc7c553a7036336b4b2fb2fca99a5986 (diff)
parentb1e2df1e75e7fc8ea4c30b7deaa54a7acf02d951 (diff)
Merge branch 'max/game2' of github.com:lonkaars/crepe
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index ca03374..9376eab 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -96,7 +96,7 @@ void GameScene::load_scene() {
boom_audio.add_component<AudioSource>(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<Sprite>(
zapper_asset,
@@ -112,7 +112,7 @@ void GameScene::load_scene() {
.collision_layer = COLL_LAY_ZAPPER,
});
zapper.add_component<BoxCollider>(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<Sprite>(
laser_asset,
@@ -128,7 +128,7 @@ void GameScene::load_scene() {
.collision_layer = COLL_LAY_LASER,
});
laser.add_component<BoxCollider>(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<Sprite>(
missile_asset,