mirror of
https://github.com/jwinterm/SpaceShooter.git
synced 2026-10-17 05:51:30 +02:00
17 lines
401 B
Java
17 lines
401 B
Java
package com.spaceshooter;
|
|
|
|
import com.badlogic.gdx.Gdx;
|
|
import com.badlogic.gdx.graphics.Texture;
|
|
|
|
public class WeaponPickup extends Pickup {
|
|
|
|
public WeaponPickup(float xPos, float yPos) {
|
|
super(ResourceManager.getAssetManager().get(ResourceManager.WeaponPickup,Texture.class));
|
|
setPosition(xPos,yPos);
|
|
}
|
|
|
|
@Override
|
|
public void update() {
|
|
translateY(-100 * Gdx.graphics.getDeltaTime());
|
|
}
|
|
} |