예제 #1
0
 /**
  * This method is called when the game enters this game loop.
  * This is where you would replace the default frame among other things.
  */
 public function onEnter()
 {
     parent::onEnter();
     $this->p1UpSprite->setVisible(false);
     $this->p1UpSprite->setVisible(false);
     $this->p1UpSprite->setVisible(false);
     $this->p1UpSprite->setVisible(false);
 }
예제 #2
0
 /**
  * This method is called when the game enters this game loop.
  * This is where you would replace the background frame among other things.
  */
 public function onEnter()
 {
     parent::onEnter();
     $this->resetGame();
 }