You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
642 B
26 lines
642 B
package gameobjects;
|
|
|
|
import java.awt.Color;
|
|
import java.util.LinkedList;
|
|
import collider.*;
|
|
import playground.Playground;
|
|
import rendering.*;
|
|
|
|
public class FallingStar extends GameObject {
|
|
|
|
|
|
protected double rad = -1;
|
|
|
|
|
|
public FallingStar(String id, Playground playground, double x, double y, double vx, double vy,
|
|
Color color, double rad) {
|
|
super(id, playground, x, y, vx, vy);
|
|
this.rad = rad;
|
|
LinkedList<Collider> cols = new LinkedList<Collider>();
|
|
CircleCollider cc = new CircleCollider("cc", this, rad);
|
|
cols.add(cc);
|
|
setColliders(cols);
|
|
this.artist = new CircleArtist(this, rad, color);
|
|
}
|
|
|
|
}
|