feat: RenewalScene — Great Renewal visual event between cycles

After every 7th run (Great Renewal), players see a special scene:
- Pulsing Mycelium particle animation (breathing spiral)
- Staged text reveals: title, flavor, cycle counter, theme, lore, maturation
- "Цикл N → Цикл N+1" transition with narrative theme name
- Lore fragment from the new cycle's theme (Russian)
- Mycelium maturation percentage display
- FractalScene routes to RenewalScene when renewal detected
- Scene flow: Fractal → Renewal → Cradle (on renewal) or Fractal → Cradle (normal)
- Registered in game config

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Денис Шкабатур
2026-02-12 18:48:12 +03:00
parent b295f3e1fd
commit 91d4e4d730
3 changed files with 281 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import { UIScene } from './scenes/UIScene';
import { DeathScene } from './scenes/DeathScene';
import { FractalScene } from './scenes/FractalScene';
import { BossArenaScene } from './scenes/BossArenaScene';
import { RenewalScene } from './scenes/RenewalScene';
export const GAME_WIDTH = 1280;
export const GAME_HEIGHT = 720;
@@ -16,7 +17,7 @@ export const gameConfig: Phaser.Types.Core.GameConfig = {
height: GAME_HEIGHT,
backgroundColor: '#0a0a0a',
parent: document.body,
scene: [BootScene, CradleScene, GameScene, UIScene, DeathScene, FractalScene, BossArenaScene],
scene: [BootScene, CradleScene, GameScene, UIScene, DeathScene, FractalScene, RenewalScene, BossArenaScene],
physics: {
default: 'arcade',
arcade: {