Skip to content

Commit

Permalink
chore: Add new stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Jun 5, 2024
1 parent 2f4efec commit 631e00d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
<ol class="story-list">
<li><div data-to-router="/play?mode=single&mode1=story&episode=0"><span>1</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=1"><span>2</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=0"><span>3</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=1"><span>4</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=2"><span>3</span></div></li>
<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=0"><span>5</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=1"><span>6</span></div></li>
<li><div data-to-router="/play?mode=single&mode1=story&episode=0"><span>7</span></div></li>
Expand Down
20 changes: 16 additions & 4 deletions src/manager/ColorManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,22 @@ const themeArgb: Record<string, ITheme<number>> = {
sky1: 0xffcc5333,
},
dawn: {
grassTip: 0xffc08959,
grassBase: 0xff352b27,
sky0: 0xffcf6c50,
sky1: 0xffffb06d,
grassTip: 0xffffa352,
grassBase: 0xff4c3736,
sky0: 0xff43454b,
sky1: 0xffc98774,
},
dust: {
grassTip: 0xfffc6d43,
grassBase: 0xff262428,
sky0: 0xff524b4d,
sky1: 0xffdfb6ad,
},
fire: {
grassTip: 0xffdc4027,
grassBase: 0xff402b27,
sky0: 0xff2f2e36,
sky1: 0xffab5829,
},
clear: {
grassTip: 0xff7f7f19,
Expand Down
42 changes: 42 additions & 0 deletions src/stories/se01ep04.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { AudioEvent, DebugAlertEvent, EndEvent, LowRpmLimitEvent, ThemeEvent, Time } from "./utils";

export const SE1EP04 = [
...new Array(3)
.fill(0)
.map((_, index) =>
AudioEvent(
Time(0, 10, index),
`S001-EP001-${(index + 1).toString().padStart(3, '0')}.mp3`,
),
),
...new Array(34)
.fill(0)
.map((_, index) =>
AudioEvent(
Time(0, 10, index + 3),
`S001-EP004-${(index + 4).toString().padStart(3, '0')}.mp3`,
),
),
...new Array(5)
.fill(0)
.map((_, index) =>
AudioEvent(
Time(0, 10, index + 37),
`S001-EP001-${(index + 36).toString().padStart(3, '0')}.mp3`,
),
),
LowRpmLimitEvent(Time(0, 10), 170),
LowRpmLimitEvent(Time(0, 10, 1), 195),
LowRpmLimitEvent(Time(0, 14, 4), 200),
ThemeEvent(Time(0, 14, 4), 'rain'),
LowRpmLimitEvent(Time(0, 14, 12), 270),
ThemeEvent(Time(0, 14, 12), 'fire'),
LowRpmLimitEvent(Time(0, 14, 18), 200),
ThemeEvent(Time(0, 14, 18), 'rain'),
LowRpmLimitEvent(Time(0, 14, 21), 230),
LowRpmLimitEvent(Time(0, 14, 31), 240),
LowRpmLimitEvent(Time(0, 14, 38), 200),
ThemeEvent(Time(0, 14, 38), 'clear'),
EndEvent(Time(0, 31, 42)),
DebugAlertEvent(Time(0, 31, 45), 'Hmmmm'),
];

0 comments on commit 631e00d

Please sign in to comment.