/** * 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); }
/** * 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(); }