yo
This commit is contained in:
parent
af1a23b5af
commit
0c1c9aa2dd
2 changed files with 54 additions and 0 deletions
29
src/ei/game/scene/weapons/BomberWeapon.java
Normal file
29
src/ei/game/scene/weapons/BomberWeapon.java
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
package ei.game.scene.weapons;
|
||||||
|
|
||||||
|
import ei.engine.effects.Particles;
|
||||||
|
import ei.engine.math.Vector2f;
|
||||||
|
|
||||||
|
public class BomberWeapon extends Weapon{
|
||||||
|
|
||||||
|
public BomberWeapon(Vector2f startPos) {
|
||||||
|
super(startPos);
|
||||||
|
setVelocity(4);
|
||||||
|
setRange(100);
|
||||||
|
setDamage(10);
|
||||||
|
}
|
||||||
|
public Particles getWeapon() {
|
||||||
|
Particles part = new Particles("bomber");
|
||||||
|
part = new Particles("weapon");
|
||||||
|
part.MaxSpeedX=500;
|
||||||
|
part.MaxSpeedY=400;
|
||||||
|
part.MaxSpeedZ=600;
|
||||||
|
part.rainbow = false;
|
||||||
|
part.size=10;
|
||||||
|
return part;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void update() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
25
src/ei/game/scene/weapons/CannonBall.java
Normal file
25
src/ei/game/scene/weapons/CannonBall.java
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package ei.game.scene.weapons;
|
||||||
|
|
||||||
|
import ei.engine.effects.Particles;
|
||||||
|
import ei.engine.math.Vector2f;
|
||||||
|
|
||||||
|
public class CannonBall extends Weapon{
|
||||||
|
|
||||||
|
public CannonBall(Vector2f startPos) {
|
||||||
|
super(startPos);
|
||||||
|
setVelocity(4);
|
||||||
|
setRange(500);
|
||||||
|
setDamage(5);
|
||||||
|
}
|
||||||
|
public Particles getWeapon() {
|
||||||
|
Particles part = new Particles("cannon");
|
||||||
|
part = new Particles("weapon");
|
||||||
|
part.MaxSpeedX=500;
|
||||||
|
part.MaxSpeedY=400;
|
||||||
|
part.MaxSpeedZ=600;
|
||||||
|
part.rainbow = false;
|
||||||
|
part.size=5;
|
||||||
|
return part;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue