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>
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import Phaser from 'phaser';
|
|
import { BootScene } from './scenes/BootScene';
|
|
import { CradleScene } from './scenes/CradleScene';
|
|
import { GameScene } from './scenes/GameScene';
|
|
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;
|
|
|
|
export const gameConfig: Phaser.Types.Core.GameConfig = {
|
|
type: Phaser.AUTO,
|
|
width: GAME_WIDTH,
|
|
height: GAME_HEIGHT,
|
|
backgroundColor: '#0a0a0a',
|
|
parent: document.body,
|
|
scene: [BootScene, CradleScene, GameScene, UIScene, DeathScene, FractalScene, RenewalScene, BossArenaScene],
|
|
physics: {
|
|
default: 'arcade',
|
|
arcade: {
|
|
gravity: { x: 0, y: 0 },
|
|
debug: false,
|
|
},
|
|
},
|
|
scale: {
|
|
mode: Phaser.Scale.FIT,
|
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
|
},
|
|
render: {
|
|
pixelArt: true,
|
|
antialias: false,
|
|
},
|
|
};
|