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

  1. package gameobjects;
  2. import java.awt.Color;
  3. import java.util.LinkedList;
  4. import collider.*;
  5. import playground.Playground;
  6. import rendering.*;
  7. public class FallingStar extends GameObject {
  8. protected double rad = -1;
  9. public FallingStar(String id, Playground playground, double x, double y, double vx, double vy,
  10. Color color, double rad) {
  11. super(id, playground, x, y, vx, vy);
  12. this.rad = rad;
  13. LinkedList<Collider> cols = new LinkedList<Collider>();
  14. CircleCollider cc = new CircleCollider("cc", this, rad);
  15. cols.add(cc);
  16. setColliders(cols);
  17. this.artist = new CircleArtist(this, rad, color);
  18. }
  19. }