Skip to content

Commit

Permalink
Fix threepanel id & add threedouble
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Dec 28, 2023
1 parent 49e3ac7 commit cb2b0df
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 5 deletions.
16 changes: 15 additions & 1 deletion app/src/chart/gameTypes/GameTypeRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ GameTypeRegistry.register({
})

GameTypeRegistry.register({
id: "dance-3panel",
id: "dance-threepanel",
numCols: 3,
columnWidths: [64, 64, 64],
columnRotations: [45, -90, 135],
Expand All @@ -129,3 +129,17 @@ GameTypeRegistry.register({
vertical: [0, 1, 2],
},
})

GameTypeRegistry.register({
id: "dance-threedouble",
numCols: 6,
columnWidths: [64, 64, 64, 64, 64, 64],
columnRotations: [45, -90, 135, 45, -90, 135],
gameLogic: new BasicGameLogic(),
parser: new BasicNotedataParser(),
editNoteTypes: ["Tap", "Mine", "Fake", "Lift"],
flipColumns: {
horizontal: [2, 1, 0, 5, 4, 3],
vertical: [0, 1, 2, 3, 4, 5],
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const DanceDefaultNoteskin: NoteSkinOptions = {
"dance-couple",
"dance-solo",
"dance-solodouble",
"dance-3panel",
"dance-threepanel",
"dance-threedouble",
],
rotateColumns: true,
}
28 changes: 27 additions & 1 deletion app/src/data/GameplayKeybindData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const GAMEPLAY_KEYBINDS: { [key: string]: GameplayKeybind[] } = {
keys: ["L"],
},
],
"dance-3panel": [
"dance-threepanel": [
{
label: "UpLeft",
keys: ["Left", "Q"],
Expand All @@ -180,4 +180,30 @@ export const GAMEPLAY_KEYBINDS: { [key: string]: GameplayKeybind[] } = {
keys: ["Right", "E"],
},
],
"dance-threedouble": [
{
label: "P1 UpLeft",
keys: ["Left"],
},
{
label: "P1 Down",
keys: ["Down"],
},
{
label: "P1 UpRight",
keys: ["Right"],
},
{
label: "P2 UpLeft",
keys: ["Q"],
},
{
label: "P2 Down",
keys: ["S"],
},
{
label: "P2 UpRight",
keys: ["E"],
},
],
}
6 changes: 4 additions & 2 deletions app/src/util/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export class DefaultOptions {
"dance-couple": "default",
"dance-solo": "default",
"dance-solodouble": "default",
"dance-3panel": "default",
"dance-threepanel": "default",
"dance-threedouble": "default",
} as Record<string, string>,
}
static audio = {
Expand All @@ -110,7 +111,8 @@ export class DefaultOptions {
defaultTimingCollection: {
"dance-single": "ITG",
"dance-double": "ITG",
"dance-3panel": "ITG",
"dance-threepanel": "ITG",
"dance-threedouble": "ITG",
"dance-solo": "ITG",
"dance-solodouble": "ITG",
} as { [key: string]: string },
Expand Down

0 comments on commit cb2b0df

Please sign in to comment.