diff --git a/src/index.ts b/src/index.ts index 9739896..8f48f89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,364 +14,6 @@ import { SparebeatMap } from './sparebeat/format'; import fs from 'fs'; import JSZip from 'jszip'; -const spmap: SparebeatMap = { - title: 'Kirakirize World', - artist: 'kooridori', - url: 'https://soundcloud.com/kooridori', - bgColor: ['#1F96E7', '#486AE7'], - bpm: 195, - startTime: 3660, - level: { - easy: 3, - normal: 6, - hard: 11, - }, - map: { - easy: [ - '23,,,,,,,,4,,,,,,,', - '1,,,,,,,,3,,,,,,,', - '2,,,,,,,,4,,,,,,,', - '1,,,,,,,,3,,,,,,,', - '1,,2,,3,,,,2,,3,,4,,,', - '3,,2,,1,,,,4,,3,,2,,,', - '1,,2,,3,,,,2,,3,,4,,,', - '1,,,,2,,,,d,,,,,,,', - '56h,,,3,,,2,,,,4,,3,,2,', - '1,,,2,,,3,,,,4,,3,,2,', - '1,,,3,,,2,,,,1,,2,,3,', - '4,,,3,,,2,,4,,3,,2,,1,', - '2,,,3,,,2,,,,4,,3,,2,', - '1,,,2,,,3,,,,4,,3,,2,', - '1,,,3,,,2,,,,1,,2,,3,', - '4,,,2,,,3,,4,,3,,2,,1,', - ',,4,,3,,,,1,,b,,,,f3,', - '4,,3,,2,,1,,,,2,,3,,2,', - ',,1,,2,,,,4,,c,,,,2g,', - '1,,2,,3,,4,,,,3,,2,,3,', - ',,1,,2,,,,3,,2,,1,,2,', - ',,4,,3,,,,1,,2,,3,,4,', - ',,2,,3,,,,4,,3,,1,,2,', - '3,,,,4,,,,1,,2,,3,,,', - '12,,4,,3,,,,1,,b,,,,f3,', - '4,,3,,2,,1,,,,2,,3,,2,', - ',,1,,2,,,,4,,c,,,,2g,', - '1,,2,,3,,4,,,,3,,2,,3,', - ',,1,,2,,,,3,,2,,1,,2,', - ',,4,,3,,,,1,,2,,3,,4,', - ',,2,,3,,,,1,,2,,4,,3,', - 'a,,,,,,ed,,,,,,1h,,2,', - '34,,,1,,,2,,,3,,,4,,,', - '23,,,4,,,3,,,2,,,1,,,', - '34,,,1,,,3,,,2,,,4,,,', - '23,,,4,,,3,,,1,,,2,,,', - '34,,,2,,,1,,,3,,,4,,,', - '23,,,1,,,2,,,3,,,4,,,', - '67,,,,,,,,,,,,,,,', - '34,,,12,,,34,,,,1,,67,,,', - '2,,,3,,,2,,,,,,,,,', - '1,,,,,,3,,,,,,,,,', - '4,,,2,,,1,,,,,,,,,', - '2,,,,,,4,,,,,,,,,', - '23,,,,,,,,23,,,,,,,', - '23,,,,,,,,23,,,,,,,', - '23,,,1,,,2,,,3,,,4,,,', - '23,,,,4,,3,,,,1,,67,,,', - '67,,,,4,,3,,1,,2,,4,,,', - '1,,2,,3,,d,,,,3h,,2,,,', - '1,,2,,4,,,,3,,1,,2,,c,', - ',,2g,,,,d,,,,,,3h,,,', - '1,,,,4,,3,,1,,2,,3,,d,', - ',,3h,,,,a,,,,e2,,4,,,', - '2,,,3,,,4,,1,,2,,4,,3,', - '12,,,4,,,3,,,1,,,d,,,', - '3h,,,2,,,1,,,3,,,4,,,', - '12,,,,,,,,34,,,,,,,', - '2,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '3,,,2,,,1,,,3,,,4,,,', - '2,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '2,,,3,,,2,,,1,,,4,,,', - '12,,,3,,,1,,,2,,,4,,,', - '23,,,1,,,2,,,3,,,4,,,', - '12,,,3,,,4,,,1,,,2,,,', - '34,,,2,,,1,,,3,,,4,,,', - '12,,,,,,34,,,,,,12,,,', - ',,23,,,,,,34,,,,12,,,', - '67,,,,,,,,,,,,,,,', - '34,,,12,,,34,,,,1,,67,,,', - '12,,,,4,,3,,1,,2,,3,,4,', - '56,,3,,2,,d,,,,3h,,2,,,', - '1,,2,,4,,,,1,,2,,3,,d,', - ',,,,3h,,b,,,,,,f3,,,', - '1,,,,4,,3,,1,,2,,3,,d,', - ',,3h,,,,a,,,,e2,,4,,,', - '2,,,3,,,4,,3,,2,,1,,2,', - '34,,,12,,,34,,,,1,,78,,,', - '67,,,,4,,3,,1,,2,,4,,,', - '1,,2,,3,,d,,,,3h,,2,,,', - '1,,2,,4,,,,2,,3,,4,,a,', - ',,e2,,,,c,,,,,,2g,,,', - '1,,,,2,,3,,4,,1,,2,,3,', - '4,,,3,,,a,,,,,,e2,,,', - '34,,,12,,,34,,1,,2,,4,,3,', - '12,,,34,,,12,,4,,3,,1,,2,', - '34,,,12,,,34,,1,,2,,3,,4,', - '12,,,4,,,3,,,1,,,d,,,', - '3h,,,,1,,,,2,,,,78,,,', - '56,,,3,,,2,,,,4,,3,,2,', - '1,,,2,,,3,,,,4,,3,,2,', - '1,,,3,,,2,,,,1,,2,,3,', - '4,,,3,,,2,,4,,3,,2,,1,', - '2,,,3,,,2,,4,,3,,2,,1,', - '3,,,2,,,3,,1,,2,,3,,4,', - '2,,,3,,,2,,1,,2,,3,,4,', - '2,,,1,,,2,,34,,,12,,,34,', - ',,,,67,,,,,,,,,,,', - ',,,,,,,,,,,,,,,', - ], - normal: [ - '23,,4,,,,4,,,,4,,,,4,', - '1,,3,,,,3,,,,3,,,,3,', - '2,,4,,,,4,,,,4,,,,4,', - '1,,3,,,,3,,1,2,3,,2,3,4,', - '1,,2,,4,,3,,1,,2,,4,,3,', - '2,,1,,3,,4,,2,,1,,3,,4,', - '1,,2,,4,,3,,1,,2,,4,,3,', - '2,,1,,3,,4,,1,2,3,,2,3,4,', - '56,,,3,,,4,,,,3,2,1,,2,', - '34,,,1,,,2,,,,4,3,2,,4,', - '12,,,4,,,3,,,,1,2,3,,4,', - '23,,,4,,,1,,4,,3,2,1,,4,', - '12,,,3,,,4,,,,3,2,1,,2,', - '34,,,1,,,2,,,,4,3,2,,4,', - '12,,,4,,,3,,,,1,2,3,,4,', - '23,,,1,,,2,,3,,4,3,2,,1,', - ',,4,,3,,1,,2,,c,,,,g4,', - '2,,3,,2,,1,,,,2,,4,,3,', - ',,2,,1,,2,,3,,d,,,,1h,', - '2,,3,,4,,1,,,,2,,4,,2,', - ',,1,,2,,4,,3,,2,,1,,2,', - ',,4,,3,,2,,3,,1,,2,,4,', - ',,1,,2,,3,,4,,3,,2,,3,', - '1,,2,,3,,4,,1,,2,,4,,3,', - '56,,4,,3,,1,,2,,c,,,,g4,', - '2,,3,,2,,1,,,,2,,4,,3,', - ',,2,,1,,2,,3,,d,,,,1h,', - '2,,3,,4,,1,,,,2,,4,,2,', - '34,,1,,2,,4,,3,,2,,1,,2,', - ',,4,,3,,2,,3,,1,,2,,4,', - ',,1,,2,,3,,4,,3,,2,,3,', - 'a,,,,,,ed,,,,,,1h,,2,', - '34,,,2,,,1,,,2,,,34,,,', - '23,,,1,,,3,,,4,,,12,,,', - '34,,,1,,,3,,,2,,,34,,,', - '23,,,4,,,3,,,1,,,23,,,', - '34,,,2,,,1,,,2,,,34,,,', - '23,,,1,,,3,,,4,,,12,,,', - '67,,,,,,,,,,,,,,,', - '23,,,34,,,a,,,,e2,,78,,,', - '2,,,3,,,2,,,,,,,,,', - '1,,,,,,3,,,,,,,,,', - '4,,,2,,,1,,,,,,,,,', - '2,,,,,,4,,,,,,,,,', - '23,,,,,,,,23,,,,,,,', - '23,,,,,,,,23,,,,,,,', - '23,,,1,,,2,,,4,,,3,2,1,', - '23,,,,4,,3,,,,12,,78,,,', - '67,,,,4,,3,,1,2,3,,2,3,4,', - '1,,2,,3,,d,,,,3h,,2,,1,', - '4,,3,2,1,,4,,3,,1,,2,,c,', - ',,2g,,1,,d,,,,,,3h,,,', - '1,2,3,,2,3,4,,1,,3,,2,,d,', - ',,3h,,2,,a,,,,e3,,4,,,', - '12,,,3,,,4,,1,2,3,,2,3,4,', - '12,,,34,,,23,,,12,,,d,,,', - '3h,,,2,,,1,,,3,,,4,,,', - '12,,,,,,,,34,,,,,,,', - '2,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '3,,,2,,,1,,,3,,,4,,,', - '2,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '2,,,3,,,2,,,1,,,4,,3,', - '12,,,3,,,1,,,2,,,4,,,', - '23,,,1,,,2,,,3,,,4,,,', - '12,,,3,,,4,,,1,,,2,,,', - '34,,,2,,,1,,,3,,,4,,,', - '12,,,,,,34,,,,,,12,,,', - ',,23,,,,,,34,,,,12,,,', - '67,,,,,,,,,,,,,,,', - '23,,,34,,,a,,,,e2,,78,,,', - '12,,,,4,,3,,12,,34,,12,,34,', - '56,,3,,2,,d,,,,3h,,2,,1,', - '4,,3,2,1,,4,,3,,1,,2,,d,', - ',,,,3h,,b,,,,,,f3,,,', - '1,2,3,,2,3,4,,1,,3,,2,,d,', - ',,2h,,1,,b,,,,f3,,4,,,', - '12,,,34,,,12,,4,3,2,,1,,2,', - '34,,,12,,,34,,,,1,,78,,,', - '67,,,,4,,3,,1,2,3,,2,3,4,', - '1,,2,,3,,d,,,,3h,,2,,1,', - '4,,3,2,1,,4,,3,,2,,3,,a,', - ',,e2,,4,,c,,,,,,2g,,,', - '34,,1,2,3,,2,3,4,,2,,1,2,3,', - '4,,,3,,,a,,,,,,e2,,,', - '34,,,12,,,34,,1,2,3,,2,3,4,', - '12,,,34,,,12,,4,3,2,,3,2,1,', - '34,,,12,,,23,,1,2,3,,2,3,4,', - '12,,,34,,,23,,,12,,,d,,,', - '3h,,,,2,,,,3,,1,2,78,,,', - '56,,,3,,,4,,,,3,2,1,,2,', - '34,,,1,,,2,,,,4,3,2,,4,', - '12,,,4,,,3,,,,1,2,3,,4,', - '23,,,4,,,1,,4,,3,2,1,,4,', - '12,,,34,,,2,,4,3,2,,1,,2,', - '34,,,12,,,3,,4,3,2,,1,,4,', - '12,,,34,,,2,,1,2,3,,4,,1,', - '23,,,1,,,2,,34,,,12,,,34,', - ',,,,67,,,,,,,,,,,', - ',,,,,,,,,,,,,,,', - ], - hard: [ - '23,,4,,,,4,,,,4,,,,4,', - '1,,3,,,,3,,,,3,,,,3,', - '2,,4,,,,4,,,,4,,,,4,', - '1,,3,,,,3,,1,2,3,4,1,2,3,4', - - '1,,2,,4,,3,,1,,2,,4,,3,', - '2,,1,,3,,4,,2,,1,,3,,4,', - '1,,2,,4,,3,,1,,2,,4,,3,', - '2,,1,,3,,4,,1,2,3,4,1,2,3,4', - - '56,,,3,2,,3,,,,4,3,1,,2,', - '34,,,2,3,,4,,,,3,2,1,,4,', - '12,,,3,4,,3,,,,1,2,3,,4,', - '23,,,4,3,,1,,4,,3,2,1,,4,', - - '12,,,3,2,,3,,,,4,3,1,,2,', - '34,,,2,3,,4,,,,3,2,1,,4,', - '12,,,3,4,,3,,,,1,2,3,,4,', - '23,,,1,2,,34,,2,,4,3,12,,3,', - - ',,4,,3,,1,,2,,c,,,,g4,', - '2,,3,,3,,1,,,,2,,4,,3,', - ',,2,,1,,2,,3,,d,,,,1h,', - '2,,3,,3,,1,,,,2,,4,,2,', - - ',,1,,2,,4,,3,,2,,1,,2,', - ',,4,,3,,2,,3,,1,,2,,4,', - ',,1,,2,,3,,4,,3,,2,,3,', - '1,,2,,3,,4,,1,,2,,4,,3,', - - '56,,4,,3,,1,,2,,c,,,,g4,', - '2,,3,,3,,1,,,,2,,4,,3,', - ',,2,,1,,2,,3,,d,,,,1h,', - '2,,3,,3,,1,,,,2,,4,,2,', - - '34,,1,,2,,4,,3,,2,,1,,2,', - ',,4,,3,,2,,3,,1,,2,,4,', - ',,1,,2,,3,,4,,3,,2,,3,', - '1b,,,,,,f3d,,,,,,1h,,2,', - - '34,,,34,,,13,,,12,,,34,,,', - '23,,,12,,,24,,,34,,,12,,,', - '34,,,12,,,13,,,23,,,34,,,', - '23,,,12,,,24,,,23,,,4,3,2,1', - - '34,,,34,,,13,,,12,,,34,,,', - '23,,,12,,,24,,,34,,,12,,,', - '67,,,,,,,,,,,,,,,', - '23,,,12,,,cd,,,,12gh,,78,,,', - - '2,,,3,,,2,,,,,,,,,', - '1,,,,,,3,,,,,,,,,', - '4,,,2,,,1,,,,,,,,,', - '2,,,,,,4,,,,,,,,,', - - '23,,,,,,,,23,,,,,,,', - '23,,,,,,,,23,,,,,,,', - '23,,,12,,,23,,,34,,,23,,1,2', - '34,,,,1,2,,3,4,,12,,78,,,', - - '67,,,,4,,3,,1,2,3,,2,3,4,', - '2,,4,3,1,,d,,,,h3,2,1,,3,', - '4,,2,3,4,,2,,1,3,4,,2,,c,', - ',,2g,,1,2,d,,,,,,3h,,2,', - - '1,2,3,,2,3,4,,1,,3,,2,,d,', - ',,3h,,2,,a,,,,e4,3,2,1,4,3', - '12,,,3,,,4,,1,2,4,3,1,2,3,4', - '12,,,34,,,23,,,12,,,cd,,,', - - '1gh,,,2,,,4,,,1,,,23,,,', - '12,,,,,,,,34,,,,,,,', - - '3,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '3,,,2,,,1,,,3,,,4,,,', - - '3,,,3,,,2,,,4,,,2,,,', - '1,,,2,,,3,,,4,,,2,,,', - '1,,,3,,,4,,,2,,,4,,,', - '2,,,3,,,2,,,1,,,4,,3,', - - '12,,,3,,,1,,,2,,,4,,,', - '23,,,1,,,2,,,3,,,4,,,', - '12,,,3,,,4,,,1,,,2,,,', - '34,,,2,,,1,,,3,,,4,,,', - - '12,,,,,,34,,,,,,12,,,', - ',,23,,,,,,34,,,,12,,,', - '67,,,,,,,,,,,,,,,', - '23,,,12,,,cd,,,,12gh,,78,,,', - - '12,,4,3,2,1,4,3,12,,34,,12,,34,', - '56,,4,3,1,,d,,,,h3,2,1,,3,', - '4,,2,3,4,,2,,1,3,4,,2,,d,', - ',,,,3h,2,a,,,,,,e2,,4,', - - '1,2,3,,2,3,4,,1,,3,,2,,d,', - ',,2h,,1,,c,,,,2g,1,4,3,2,1', - '34,,,12,,,23,,4,3,2,1,4,3,1,2', - '34,,,23,,,12,,3,,1,2,78,,,', - - '67,,,,4,,3,,1,2,3,,2,3,4,', - '2,,4,3,1,,d,,,,3h,2,1,,2,', - '4,,2,3,4,,2,,1,3,4,,3,,a,', - ',,e2,,4,,c,,,,,,2g,,1,', - - '3,,2,3,4,1,2,3,4,,2,1,3,4,1,2', - '34,,,23,,,a2,,,,,,e3,,4,3', - '12,,,23,,,34,,1,,3,2,4,3,2,1', - '34,,,12,,,23,,1,,4,3,2,1,4,3', - - '12,,,34,,,23,,1,,3,4,2,1,4,3', - '12,,,34,,,23,,,12,,,cd,,,', - - '12gh,,,,23,,,,34,,1,2,78,,,', - - '56,,,3,2,,3,,,,4,3,1,,2,', - '34,,,2,3,,4,,,,3,2,1,,4,', - '12,,,3,4,,3,,,,1,2,3,,4,', - '23,,,4,3,,1,,4,,3,2,1,,4,', - - '12,,,23,,,34,,1,2,4,3,1,,2,', - '34,,,23,,,12,,4,2,1,3,4,,3,', - '12,,,34,,,23,,4,3,1,2,3,,4,', - '23,,4,3,2,1,4,3,12,,,23,,,34,', - - ',,,,67,,,,,,,,,,,', - ',,,,(1,2,4,3,2,1,),,,,,,,', - ], - }, -}; - function sparebeatToOsu(sparebeatMap: SparebeatMap): OsuFileFormat[] { const bpm = sparebeatMap.bpm; const startTime = sparebeatMap.startTime;