/*
PlAr is Platform Arena: a 2D multiplayer shooting game
Copyright (c) 2010, Antonio Ragagnin <spocchio@gmail.com>
All rights reserved.
*/
package res.elements;
import org.jbox2d.common.Vec2;
import plar.core.Gun;
import plar.core.ElementBullet;
public class GunRage extends Gun {
public GunRage() {
super();
gunName = "Rage Gun";
gunUseAmmo = 1;
}
public void createBullet() {
ElementBullet shoot = new ElementBullet();
shoot.hitDamage = 100;
shoot.setSpeed(new Vec2(100 * D().x, 100 * D().y));
initializeShoot(shoot);
addAmmo(-gunUseAmmo);
}
}
|