Add Wolong recruitment chapter
This commit is contained in:
@@ -11,6 +11,7 @@ import secondBattleMapUrl from '../../assets/images/battle/second-battle-map.svg
|
||||
import seventhBattleMapUrl from '../../assets/images/battle/seventh-battle-map.svg';
|
||||
import sixthBattleMapUrl from '../../assets/images/battle/sixth-battle-map.svg';
|
||||
import sixteenthBattleMapUrl from '../../assets/images/battle/sixteenth-battle-map.svg';
|
||||
import seventeenthBattleMapUrl from '../../assets/images/battle/seventeenth-battle-map.svg';
|
||||
import tenthBattleMapUrl from '../../assets/images/battle/tenth-battle-map.svg';
|
||||
import thirteenthBattleMapUrl from '../../assets/images/battle/thirteenth-battle-map.svg';
|
||||
import thirdBattleMapUrl from '../../assets/images/battle/third-battle-map.svg';
|
||||
@@ -90,6 +91,7 @@ export class BootScene extends Phaser.Scene {
|
||||
this.load.image('battle-map-fourteenth', fourteenthBattleMapUrl);
|
||||
this.load.image('battle-map-fifteenth', fifteenthBattleMapUrl);
|
||||
this.load.image('battle-map-sixteenth', sixteenthBattleMapUrl);
|
||||
this.load.image('battle-map-seventeenth', seventeenthBattleMapUrl);
|
||||
this.load.image('portrait-liu-bei', liuBeiPortraitUrl);
|
||||
this.load.image('portrait-guan-yu', guanYuPortraitUrl);
|
||||
this.load.image('portrait-zhang-fei', zhangFeiPortraitUrl);
|
||||
@@ -132,6 +134,7 @@ export class BootScene extends Phaser.Scene {
|
||||
this.createItemIcon('item-green-dragon-glaive', (graphics) => this.drawPolearmIcon(graphics, 0x5fbf8f, 0xd8b15f));
|
||||
this.createItemIcon('item-serpent-spear', (graphics) => this.drawSpearIcon(graphics, 0xe0e8ef, 0xb86b55));
|
||||
this.createItemIcon('item-sky-piercer-halberd', (graphics) => this.drawPolearmIcon(graphics, 0xd8dfe6, 0xd95f4f));
|
||||
this.createItemIcon('item-white-feather-fan', (graphics) => this.drawFanIcon(graphics, 0xf3f0df, 0x6e8eb8));
|
||||
this.createItemIcon('item-yellow-turban-saber', (graphics) => this.drawSaberIcon(graphics, 0xd8b15f, 0x9c6b2f));
|
||||
this.createItemIcon('item-short-bow', (graphics) => this.drawBowIcon(graphics, 0xc58a4c, 0xe8dfca));
|
||||
this.createItemIcon('item-leader-axe', (graphics) => this.drawAxeIcon(graphics, 0xd8dfe6, 0x8d5a3a));
|
||||
@@ -258,6 +261,30 @@ export class BootScene extends Phaser.Scene {
|
||||
graphics.fillTriangle(16, 5, 9, 9, 15, 14);
|
||||
}
|
||||
|
||||
private drawFanIcon(graphics: Phaser.GameObjects.Graphics, featherColor: number, ribColor: number) {
|
||||
graphics.lineStyle(2, ribColor, 1);
|
||||
graphics.beginPath();
|
||||
graphics.moveTo(16, 25);
|
||||
graphics.lineTo(5, 8);
|
||||
graphics.moveTo(16, 25);
|
||||
graphics.lineTo(10, 4);
|
||||
graphics.moveTo(16, 25);
|
||||
graphics.lineTo(16, 3);
|
||||
graphics.moveTo(16, 25);
|
||||
graphics.lineTo(22, 4);
|
||||
graphics.moveTo(16, 25);
|
||||
graphics.lineTo(27, 8);
|
||||
graphics.strokePath();
|
||||
graphics.fillStyle(featherColor, 0.96);
|
||||
graphics.fillEllipse(5, 9, 7, 15);
|
||||
graphics.fillEllipse(10, 6, 7, 17);
|
||||
graphics.fillEllipse(16, 5, 8, 18);
|
||||
graphics.fillEllipse(22, 6, 7, 17);
|
||||
graphics.fillEllipse(27, 9, 7, 15);
|
||||
graphics.fillStyle(0xd8b15f, 1);
|
||||
graphics.fillCircle(16, 25, 3);
|
||||
}
|
||||
|
||||
private drawArmorIcon(graphics: Phaser.GameObjects.Graphics, baseColor: number, accentColor: number) {
|
||||
graphics.fillStyle(baseColor, 1);
|
||||
graphics.fillTriangle(14, 4, 24, 11, 20, 24);
|
||||
|
||||
Reference in New Issue
Block a user