2016-02-27 20:45:32 +00:00
|
|
|
package com.sagi.dayan.Games.Elements;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by sagi on 2/20/16.
|
|
|
|
*/
|
|
|
|
public class Missile extends AnimatedSprite {
|
|
|
|
|
|
|
|
|
2016-03-19 20:00:13 +00:00
|
|
|
public Missile(int x, int y, int w, int h, int acc, String imgName, int numOfFrames) {
|
|
|
|
super(x, y, w, h, acc, imgName, 0, 15, 15, numOfFrames);
|
2016-03-12 10:24:42 +00:00
|
|
|
|
2016-02-27 20:45:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-03-12 10:24:42 +00:00
|
|
|
protected void initFirstAnimation(String spriteSheet, int numOfFirstFrames) {
|
|
|
|
animations.add(new Animation(imageName, numOfFirstFrames, 500));
|
2016-02-27 20:45:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void update() {
|
|
|
|
locY -= acceleration;
|
|
|
|
}
|
|
|
|
}
|