Files
SpaceScooter/src/de/teamteamteam/spacescooter/entity/enemy/EnemyOne.java
T
JPT de685366ee Add damagable/vulnerable logic.
Also, add the other Backgrounds to spawnable Entities and
stuff.
2014-12-02 11:08:07 +01:00

31 lines
655 B
Java

package de.teamteamteam.spacescooter.entity.enemy;
import de.teamteamteam.spacescooter.entity.explosion.ExplosionOne;
public class EnemyOne extends Enemy {
public EnemyOne(int x, int y) {
super(x, y);
this.setImage("images/nyancat.png");
this.setPrimaryShotImage("images/shots/laser_red.png");
this.setShootSpeed(2);
this.setShootDelay(42);
this.setShootSpawn(-8, 10);
this.setShootDamage(5);
this.setCollisionDamage(5);
this.setHealthPoints(5);
this.setScore(10);
}
@Override
public void update() {
super.update();
}
@Override
public void explode() {
new ExplosionOne(this.getCenteredX(), this.getCenteredY());
}
}