aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemySubScene.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 11:10:05 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 11:10:05 +0100
commita9c6e86e4d95f4f4986be9016779dcc26a925862 (patch)
tree27fb51d2b1ab0d260cfc6b9ebed4c7fceedcee34 /game/enemy/EnemySubScene.cpp
parent1de7cd3a1265edd2c247f5f847a5665bafd78faa (diff)
animation working + removed bullet colliding with dead enemies
Diffstat (limited to 'game/enemy/EnemySubScene.cpp')
-rw-r--r--game/enemy/EnemySubScene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/enemy/EnemySubScene.cpp b/game/enemy/EnemySubScene.cpp
index ed3e555..d1117d8 100644
--- a/game/enemy/EnemySubScene.cpp
+++ b/game/enemy/EnemySubScene.cpp
@@ -33,7 +33,7 @@ int EnemySubScene::create(Scene & scn, int enemy_counter) {
});
// normal body
Asset enemy_body_asset {"asset/workers/worker2Body.png"};
- enemy.add_component<BoxCollider>(vec2(50, 50));
+ enemy.add_component<BoxCollider>(vec2(40, 60));
Sprite & enemy_body_sprite = enemy.add_component<Sprite>(
enemy_body_asset,
Sprite::Data {
@@ -53,7 +53,7 @@ int EnemySubScene::create(Scene & scn, int enemy_counter) {
}
);
body_animator.pause();
- enemy.add_component<BoxCollider>(vec2(40, 60), vec2(-20, 0));
+
Asset enemy_head_asset {"asset/workers/worker2Head.png"};
Sprite & enemy_head_sprite = enemy.add_component<Sprite>(
enemy_head_asset,
@@ -74,7 +74,7 @@ int EnemySubScene::create(Scene & scn, int enemy_counter) {
);
//jetpack
- enemy.add_component<CircleCollider>(25, vec2(0, -20));
+ //enemy.add_component<CircleCollider>(25, vec2(0, -20));
Asset enemy_jetpack_asset {"asset/barry/jetpackDefault.png"};
Sprite & enemy_jetpack_sprite = enemy.add_component<Sprite>(
enemy_jetpack_asset,