$label) { $items[] = [$label, null, fn () => $this->scenes()->switchTo(PlayScene::class, ['level' => Campaign::LEVELS[0], 'skill' => $skill])]; } $items[] = ['BACK', null, fn () => $this->back()]; return $items; } public function enter(array $params = []): void { parent::enter($params); $this->menu->move(1); } protected function renderBackground(\JumPHP\Renderer\Renderer $r): void { $r->fillRect(0, 0, $this->width(), $this->height(), [0, 0, 0, 225]); } protected function back(): void { $this->scenes()->pop(); } }