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.
|
|
package gameobjects;
import java.awt.Color; import collider.*; import playground.Playground; import rendering.*;
public class EgoObject extends GameObject {
double egoRad = 0;
public EgoObject(String id, Playground pg, double x, double y, double vx, double vy, double egoRad) { super(id, pg, x, y, vx, vy); this.egoRad = egoRad; this.artist = new CircleArtist(this, egoRad, Color.WHITE); }
public GameObject generateColliders() { CircleCollider coll = new CircleCollider("coll", this, this.egoRad); this.addCollider(coll); return this; }
}
|