Add cinematic prologue story

This commit is contained in:
2026-06-21 23:36:21 +09:00
parent 34611bc633
commit 591141c492
11 changed files with 217 additions and 71 deletions

View File

@@ -1,5 +1,10 @@
import Phaser from 'phaser';
import titleBackgroundUrl from '../../assets/images/taoyuan-oath-title.png';
import storyChaosUrl from '../../assets/images/story/01-yellow-turban-chaos.png';
import storyLiuBeiUrl from '../../assets/images/story/02-liu-bei-resolve.png';
import storyThreeHeroesUrl from '../../assets/images/story/03-three-heroes-meet.png';
import storyMilitiaUrl from '../../assets/images/story/04-volunteer-militia.png';
import storySortieUrl from '../../assets/images/story/05-first-sortie.png';
import { palette } from '../ui/palette';
export class BootScene extends Phaser.Scene {
@@ -9,6 +14,11 @@ export class BootScene extends Phaser.Scene {
preload() {
this.load.image('title-taoyuan', titleBackgroundUrl);
this.load.image('story-chaos', storyChaosUrl);
this.load.image('story-liu-bei', storyLiuBeiUrl);
this.load.image('story-three-heroes', storyThreeHeroesUrl);
this.load.image('story-militia', storyMilitiaUrl);
this.load.image('story-sortie', storySortieUrl);
}
create() {
@@ -17,9 +27,9 @@ export class BootScene extends Phaser.Scene {
}
private createGeneratedTextures() {
this.createPortrait('portrait-lord', 0x445f92, 0xd8b15f);
this.createPortrait('portrait-strategist', 0x5b6e55, 0xe8dfca);
this.createPortrait('portrait-captain', 0x8a4f3d, 0xd8b15f);
this.createPortrait('portrait-liu-bei', 0x445f92, 0xd8b15f);
this.createPortrait('portrait-guan-yu', 0x1f5f43, 0xd8b15f);
this.createPortrait('portrait-zhang-fei', 0x8a4f3d, 0xe8dfca);
this.createPetalTexture();
this.createUnitTexture('unit-ally', palette.blue, 0xe7edf7);
this.createUnitTexture('unit-enemy', palette.red, 0xffebe7);