예제 #1
0
파일: Avacado.java 프로젝트: Bro-Pals/TAG_8
 public Avacado(float x, float y, float width, float height, int roomId) {
   super(x, y, width, height);
   avacadosMade++;
   this.id = avacadosMade;
   this.roomId = roomId;
   interactDistance = 80;
   AvacadoManager.get().addAvacadoToWorld(this);
   // add this avacado to the world
   collected = false;
 }
예제 #2
0
파일: Avacado.java 프로젝트: Bro-Pals/TAG_8
 @Override
 public void interact(GameObject instance) {
   AvacadoManager.get().pickUpAvacado(this);
 }