Skip to content

Commit

Permalink
adding buffed box boy for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gregchan550 committed Sep 22, 2023
1 parent 068e003 commit 2e3a8ac
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,16 @@ public void create() {
// Load game assets
loadAssets();
logger.info("Lol");
logger.info("Lol");
logger.info("Lol");
displayUI();
logger.info("Lol");
logger.info("Lol");
logger.info("Lol");
spawnTerrain();
logger.info("Lol");
logger.info("Lol");
logger.info("Lol");

// Set up infrastructure for end game tracking
player = spawnPlayer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.csse3200.game.components.Component;
import com.csse3200.game.components.ProjectileEffects;
import com.csse3200.game.entities.Entity;
import com.csse3200.game.entities.factories.ProjectileFactory;
import com.csse3200.game.physics.PhysicsLayer;
import com.csse3200.game.physics.components.PhysicsComponent;
import com.csse3200.game.services.ServiceLocator;

Expand Down Expand Up @@ -67,5 +71,10 @@ void stopWalking() {
void attack() {
Sound attackSound = ServiceLocator.getResourceService().getAsset("sounds/Impact4.ogg", Sound.class);
attackSound.play();
Entity projectile = ProjectileFactory.createEffectProjectile(PhysicsLayer.NPC, new Vector2(20f, entity.getPosition().y),
new Vector2(2, 2), ProjectileEffects.FIREBALL, false);
projectile.setPosition(entity.getPosition());
projectile.setScale(1f, 1f);
ServiceLocator.getEntityService().register(projectile);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class MobBossFactory {
private static final NPCConfigs configs = FileLoader.readClass(NPCConfigs.class, "configs/Boss.json");
private static final int PRIORITY = 1;
private static final int BOSS_MOB_AGRO_RANGE = 10;
private static final int DEMON_HEALTH = 5000;
private static final int DEMON_HEALTH = 500;
private static final int DEMON_ATTACK = 0;

// Create Demon Boss
Expand Down

0 comments on commit 2e3a8ac

Please sign in to comment.