Skip to content

Commit

Permalink
feat: Add new story
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Jun 8, 2024
1 parent 167d7d6 commit 966d43d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<li><div data-to-router="/play?mode=single&mode1=story&episode=3"><span>4</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=4"><span>5</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=5"><span>6</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=0"><span>7</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=6"><span>7</span></div></li>
</ol>
</section>
<section class="screen" data-router="/play">
Expand Down
6 changes: 6 additions & 0 deletions src/manager/ColorManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ const themeArgb: Record<string, ITheme<number>> = {
sky0: 0xff10182e,
sky1: 0xff1c3a65,
},
storm: {
grassTip: 0xff1d2e3d,
grassBase: 0xff10161b,
sky0: 0xff0d141d,
sky1: 0xff121d2d,
},
winter: {
grassTip: 0xffebdaa1,
grassBase: 0xff684c25,
Expand Down
4 changes: 3 additions & 1 deletion src/stories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { SE1EP02 } from './se01ep02';
import { SE1EP03 } from './se01ep03';
import { SE1EP04 } from './se01ep04';
import { SE1EP05 } from './se01ep05';
import { SE1EP06 } from './se01ep06';
import { SE1EP07 } from './se01ep07';

export const stories = [SE1EP01, SE1EP02, SE1EP03, SE1EP04, SE1EP05];
export const stories = [SE1EP01, SE1EP02, SE1EP03, SE1EP04, SE1EP05, SE1EP06, SE1EP07];
31 changes: 31 additions & 0 deletions src/stories/se01ep07.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { AudioEvent, DebugAlertEvent, EndEvent, LowRpmLimitEvent, ThemeEvent, Time } from "./utils";

export const SE1EP07 = [
...new Array(3)
.fill(54)
.map((_, index) =>
AudioEvent(
Time(0, 10, index),
`S001-EP007-${(index + 1).toString().padStart(3, '0')}.mp3`,
),
),
LowRpmLimitEvent(Time(0, 10), 170),
LowRpmLimitEvent(Time(0, 14, 2), 200),
ThemeEvent(Time(0, 14, 2), 'night'),
LowRpmLimitEvent(Time(0, 14, 22), 275),
ThemeEvent(Time(0, 14, 22), 'storm'),
LowRpmLimitEvent(Time(0, 14, 24), 260),
ThemeEvent(Time(0, 14, 24), 'void'),
LowRpmLimitEvent(Time(0, 14, 26), 230),
ThemeEvent(Time(0, 14, 26), 'clear'),
LowRpmLimitEvent(Time(0, 14, 36), 230),
ThemeEvent(Time(0, 14, 36), 'rainy'),
LowRpmLimitEvent(Time(0, 14, 40), 250),
ThemeEvent(Time(0, 14, 40), 'dark'),
LowRpmLimitEvent(Time(0, 14, 43), 270),
ThemeEvent(Time(0, 14, 43), 'fire'),
LowRpmLimitEvent(Time(0, 14, 52), 200),
ThemeEvent(Time(0, 14, 52), 'clear'),
EndEvent(Time(0, 31, 56)),
DebugAlertEvent(Time(0, 31, 45), 'Hmmmm'),
];

0 comments on commit 966d43d

Please sign in to comment.