Skip to content

Commit e8063fe

Browse files
authored
Merge pull request #12 from jack-app/win-lose-image
case:3で勝敗を表示
2 parents 721c1dc + 6c35315 commit e8063fe

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

public/images/lose.png

62.4 KB
Loading

public/images/win.png

223 KB
Loading

public/scripts/components/TimeLinePlayer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ next() {
9696
// タイムラインのイベントを取得してから、timelineIndexをインクリメント
9797
const timelineEvent = this.scene.timeline[this.scene.timelineIndex++];
9898

99+
this.dialogBox.setVisible(true);
99100
switch (timelineEvent.type) {
100101
case 'orakuru':
101-
this.dialogBox.destroy();
102+
this.dialogBox.setVisible(false);
102103
case 'dialog': // ダイアログイベント
103104
if (timelineEvent.actorName) {
104105
// actorNameが設定されていたら名前を表示

public/scripts/data/case1.js

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export const timelineData = {
102102
{type: 'playGame'},
103103
],
104104
case3_win:[
105+
{type: 'addForeground', x: 640, y: 360, key: 'case3_win'},
106+
{type: 'orakuru'},
105107
{type:'addForeground', x: 640, y: 360, key: 'case3_6'},
106108
{type: 'dialog', text: '「危機感を持った方が良かったのはお前の方だったようだなァッ!!!ジョージーーーッッッ!!!」', actorName: 'ナキ'},
107109
// ジョージ爆発
@@ -116,6 +118,8 @@ export const timelineData = {
116118
{type: 'timelineTransition', key: 'case1'}
117119
],
118120
case3_lose:[
121+
{type: 'addForeground', x: 640, y: 360, key: 'case3_lose'},
122+
{type: 'orakuru'},
119123
{type: 'setBackground', x: 640, y: 360, key: 'case3_5'},
120124
{type:'dialog', text:'「これ結構大げさって思われる可能性が高いんだけどスポーツ経験がない男、今まであんまり運動経験がない男、部活に入った経験がない男、俺ガチで危機感持った方がいいと思うよ、うんガチで危機感持った方が良いよ、うんガチで危機感持った方が良い、俺は俺はスポーツ向いてないから運動神経無いから家に引きこもってる方が楽しいから、俺はゲームが好きだから俺は遊戯王プレイヤーだから、やばいって何がヤバイかっていうと男として成熟しないんだよね。その人生の中で何かしらの競争をしてないと男として成熟するためのパーツにかける。最後に競争したのいつ、ほかの男と戦ったの、いつ監督に理不尽なこと言われたの、いつお前つかえないって言われてベンチされたいないでしょ。」'},
121125
{type: 'timelineTransition', timelineID: 'case3'},

public/scripts/scenes/Case1.js

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export class MainScene extends Phaser.Scene {
5454
this.load.image('case3_7', 'images/case3_7.png');
5555
this.load.image('case3_8', 'images/case3_8.jpeg');
5656
this.load.image('case3_orakuru', 'images/オラクル3.png');
57+
this.load.image('case3_win', 'images/win.png');
58+
this.load.image('case3_lose', 'images/lose.png');
5759
this.load.video('fire', 'video/fire.mp4');
5860
};
5961

0 commit comments

Comments
 (0)