diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:38:24 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:38:24 +0100 |
commit | 9625b751757b8828b0edb0b7543c7cadfd25c119 (patch) | |
tree | 864d26cb57fe11887f4cd10923cd9a9d0b823af4 /game/player/PlayerBulletSubScene.cpp | |
parent | dc5d46426b30303843e8746d514db6f55ce1495b (diff) |
enemy sequence working
Diffstat (limited to 'game/player/PlayerBulletSubScene.cpp')
-rw-r--r-- | game/player/PlayerBulletSubScene.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/game/player/PlayerBulletSubScene.cpp b/game/player/PlayerBulletSubScene.cpp index 4b36387..4ad236c 100644 --- a/game/player/PlayerBulletSubScene.cpp +++ b/game/player/PlayerBulletSubScene.cpp @@ -1,4 +1,3 @@ -#include <iostream> #include <string> #include <crepe/api/GameObject.h> @@ -37,14 +36,14 @@ int PlayerBulletSubScene::create(Scene & scn){ }); player_bullet_body.active = false; - BoxCollider& player_bullet_collider = player_bullet.add_component<BoxCollider>(vec2(60, 40)); - //player_bullet_collider.active = false; + BoxCollider& player_bullet_collider = player_bullet.add_component<BoxCollider>(vec2(30, 30)); + Asset player_bullet_asset {"asset/other_effects/crepe.png"}; Sprite & player_bullet_sprite = player_bullet.add_component<Sprite>( player_bullet_asset, Sprite::Data { .flip = {true,false}, - .sorting_in_layer = SORT_IN_LAY_PLAYER, + .sorting_in_layer = SORT_IN_LAY_OBSTACLES, .order_in_layer = 1, .size = vec2(30,0), } |