示例#1
0
 public void reset() {
   if (this.pos.x < scr.getWidth() / 2 - 10) {
     this.pos.x = scr.p1.pos.x;
     this.pos.y = scr.getHeight() - scr.p1.size - this.size;
   }
   if (this.pos.x < scr.getWidth() / 2 + 10) {
     this.pos.x = scr.p2.pos.x;
     this.pos.y = scr.getHeight() - scr.p2.size - this.size;
   }
   this.v.y = 0;
   this.v.x = 0;
 }