Commit Graph

343 Commits

Author SHA1 Message Date
LoveEevee
adc45cb652 Custom scripting, #song=, translations
- A song can be linked directly by adding "#song=<id>" to the url, replace `<id>` with the id in the database, after loading it jumps immediately jumps to the difficulty selection
- Added tutorial translations
- Fixed song preview not playing
- Use text fallback for the logo when there are no vectors
- Increased combo cache by 1 pixel
- A custom javascript file can be loaded from config.json by defining "custom_js" value
- Added lots of events to help writing custom js files: `version-link, title-screen, language-change, song-select, song-select-move, song-select-difficulty, song-select-back, about, about-link, tutorial, import-songs, import-songs-default, session, session-start, session-end, debug, load-song, load-song-player2, load-song-unfocused, load-song-cancel, load-song-error, game-start, key-events, p2-game-end, p2-disconnected, p2-abandoned, pause, unpause, pause-restart, pause-song-select, game-lag, scoresheet, scoresheet-player2`
- Event syntax example:
```js
addEventListener("game-start", event => {
	console.log("game-start", event.detail)
})
```
2019-02-14 12:32:45 +03:00
Bui
ca85bc1b2d update setup link 2019-02-13 22:23:18 +00:00
LoveEevee
4d2c17c1e0 Support different results characters for debug mode 2019-02-12 03:31:20 +03:00
Bui
1fffb5fc13 remove ogg test 2019-02-06 19:55:13 +00:00
Bui
4be9334be3 solidify default git repo 2019-02-06 18:49:25 +00:00
Bui
b3ed655e44 Loader: Inject assets CSS 2019-02-06 18:27:31 +00:00
Bui
913c0787ef audio overhaul 2019-02-04 09:14:42 +00:00
LoveEevee
da40fd58ff ImportSongs: Custom assets 2019-02-03 15:04:25 +03:00
LoveEevee
b5b2dc47ab Move globe path from title screen 2019-01-29 20:02:00 +03:00
LoveEevee
32477f2129 Add query string to vectors 2019-01-29 19:23:04 +03:00
LoveEevee
4fdd98789e CanvasDraw: Move vectors to assets 2019-01-29 19:10:56 +03:00
Bui
933217d567 fix zh mixup 2019-01-28 15:53:03 +00:00
Bui
29040f474d Titlescreen: increase #lang z-index 2019-01-28 15:33:03 +00:00
Bui
cdaf3d6a91 Titlescreen: add disclaimer translations 2019-01-28 12:06:21 +00:00
Bui
682ca6aaed Titlescreen: clean disclaimer 2019-01-28 11:50:22 +00:00
Bui
2a4e566227 Titlescreen: add disclaimer 2019-01-28 11:43:18 +00:00
LoveEevee
08fb3498f6 Titlescreen: Change logo 2019-01-28 04:57:18 +03:00
LoveEevee
8d50b9ceea BrowserSupport: Translate 2019-01-26 21:29:13 +03:00
LoveEevee
6dc555ee08 Custom url for issues link 2019-01-25 07:24:43 +03:00
LoveEevee
05720b27f9 SongSelect: Translatable song titles 2019-01-25 04:42:05 +03:00
LoveEevee
e8768cc35e Strings: Translate views 2019-01-22 21:47:09 +03:00
Bui
a752aa75a2 revert zh-TW game music string 2019-01-22 08:59:07 +00:00
bckps7336
cb9f71d500 zh-TW enhancements 2019-01-22 16:33:04 +08:00
bckps7336
619701839f Translation Enhancements (zh-TW/zh-CN)
- Fixed incomplete translations from CN to TW
- Changed word usages to existing translations
2019-01-22 16:28:17 +08:00
LoveEevee
6fd37985c8 Add hover effect to language menu 2019-01-21 22:33:33 +03:00
LoveEevee
4cb84c3426 Replace difficulty badges, translate good/ok/bad 2019-01-21 22:08:02 +03:00
LoveEevee
6559e8ee28 Fix scoresheet text 2019-01-21 19:12:30 +03:00
LoveEevee
59baa9f06f Titlescreen: Add language selection menu 2019-01-21 18:47:22 +03:00
xdavidwu
65f8e9018a SongSelect: compare id before clearing currentSongCache
Add id check to currentSongCache clearing.
Fixes subtitle rendering if title matches but not the same song.
Titles are not guaranteed to be unique, but ids are.
Title check is still here for tiles that are not songs.
2019-01-21 20:10:22 +08:00
LoveEevee
68341a43af SongSelect: Fix P2 working after importing songs 2019-01-17 03:16:26 +03:00
LoveEevee
3398791afe Controller: Separate game and view loops 2019-01-16 15:33:42 +03:00
LoveEevee
a83e75b2e2 View: Fix go go time gradient 2019-01-06 22:59:49 +03:00
LoveEevee
23f17aa26d Fix typo in a variable name 2019-01-05 18:54:06 +03:00
LoveEevee
886979ad36 Allow non-standard genre field, add genre to osu songs 2019-01-05 15:24:09 +03:00
LoveEevee
8bc9aee594 ImportSongs: Add song genre 2019-01-05 10:44:28 +03:00
Bui
b91b3110d5 fix 2P breakage again 2019-01-02 04:32:33 +00:00
Bui
99463a7bf0 fix 2P breakage 2019-01-02 04:26:24 +00:00
LoveEevee
6c182d2c47 Scoresheet: Fix animation speed on window resize 2019-01-01 18:00:00 +03:00
LoveEevee
f535428125 Fix black loading screens 2019-01-01 16:35:12 +03:00
LoveEevee
f9bb8cabb0 Fix browser compatibility 2019-01-01 07:45:13 +03:00
LoveEevee
fc92c55370 Add failed animation 2019-01-01 06:04:49 +03:00
LoveEevee
06cdc1c7e2 Fix characters with page zoom 2019-01-01 04:57:21 +03:00
LoveEevee
9e8242b136 Scoresheet: Add characters 2019-01-01 04:16:55 +03:00
Bui
47e939a77c stop 0combo from trying to play 2018-12-31 17:03:54 +00:00
Bui
e8d33487e0 over1500combo every 500 instead of 100 2018-12-30 16:50:58 +00:00
Bui
806b21df08 add over1500 combo sound 2018-12-30 14:35:15 +00:00
LoveEevee
c0f89179cc View: Fix multiplayer on songs with skins 2018-12-23 17:56:40 +03:00
Bui
c2f111a91f only update lastKeyEvent on don/ka keys 2018-12-23 14:29:03 +00:00
LoveEevee
57bf7bbd8c Gamepad: Disable with keyboard input 2018-12-15 22:13:16 +03:00
LoveEevee
5f4048315d Miscellaneous bug fixes 2018-12-13 12:18:52 +03:00
Bui
ac23292fe7 change version var name 2018-12-05 21:55:28 +00:00
Bui
1806fb338e add query string to view requests 2018-12-05 21:47:35 +00:00
LoveEevee
f6660a8de0 Disable multiplayer for local song select 2018-12-06 00:23:00 +03:00
LoveEevee
a435ed1a6d SongSel: Add browse for local songs button 2018-12-05 23:33:34 +03:00
LoveEevee
51f306d1c7 About: Descriptive errors 2018-12-04 01:23:11 +03:00
LoveEevee
abe2b4ccae CanvasCache: Fix clearing on small screens 2018-12-03 03:02:03 +03:00
LoveEevee
6e61e24d56 SongSel: Fix title cache 2018-12-02 20:45:03 +03:00
LoveEevee
3ea9bc8690 Fade in when hitting drumrolls and balloons 2018-12-02 19:53:12 +03:00
LoveEevee
6d770e7b2d Add second player backgrounds, add fade on miss 2018-12-02 19:36:04 +03:00
LoveEevee
f25aee9643 SongBg: Add don backgrounds 2018-12-02 18:25:42 +03:00
Bui
c00fc0c615 more cross-origin fixes 2018-11-30 14:47:53 +00:00
Bui
7a4af4df41 fix songbg on foreign asset origins
fixes #84
2018-11-30 13:25:01 +00:00
Bui
9dcaa99148 fix promises test 2018-11-26 23:43:46 +00:00
LoveEevee
808576d0ab Remove target attribute 2018-11-27 02:31:13 +03:00
LoveEevee
14d98254bb Add browser support tests 2018-11-27 02:05:02 +03:00
LoveEevee
593e93f137 SongBg: Fix songs without a skin 2018-11-26 02:14:16 +03:00
LoveEevee
e43821ba48 SongBg: Add song skins 2018-11-26 01:42:24 +03:00
LoveEevee
6e79154cad SongBg: Reduce background resolution on mobile 2018-11-24 17:09:08 +03:00
LoveEevee
edd76b55a4 Fix backgrounds in multiplayer 2018-11-23 22:44:14 +03:00
LoveEevee
f523700dc4 Wait for backgrounds to render before starting 2018-11-23 22:15:10 +03:00
LoveEevee
96b8e9f3a2 Add random stage 2018-11-23 21:52:24 +03:00
LoveEevee
87bdf7a407 View: Add song backgrounds 2018-11-23 20:00:45 +03:00
LoveEevee
3a92a9c950 View: Fix layeredText offset 2018-11-21 13:50:48 +03:00
LoveEevee
0533ae77a4 View: Add category info 2018-11-21 12:02:53 +03:00
LoveEevee
1aadc7aaf7 Assets: Update font 2018-11-18 15:30:06 +03:00
LoveEevee
7cd8ce1ac1 View: Add note explosions 2018-11-15 11:42:22 +03:00
LoveEevee
1356f682cc View: Fix touch 2018-11-13 21:44:04 +03:00
LoveEevee
32a64a14eb Change inactive tab notification sound 2018-11-13 12:50:52 +03:00
LoveEevee
25d705ffcf P2: Multiplayer improvements 2018-11-13 07:56:38 +03:00
LoveEevee
aae31c6630 View: Fix missing sound effect 2018-11-12 14:06:36 +03:00
LoveEevee
89e25f237e View: Change pause screen 2018-11-12 13:32:02 +03:00
LoveEevee
7d91721ce8 Limit horizontal scaling in sub-titles 2018-11-10 23:52:06 +03:00
LoveEevee
b6552ea25f SongSelect: Add sub-titles 2018-11-10 22:12:29 +03:00
Bui
074ee68ce0 don't reset difficulty 2018-11-06 21:41:03 +00:00
Bui
ddc3e1a4dc save current song position before session menu 2018-11-06 21:28:28 +00:00
LoveEevee
b06d6d8412 View: Blue gauge for second player 2018-11-06 22:26:58 +03:00
AioiLight
0e3df5d406 Update Japanese bug-reports warning text 2018-11-06 23:10:01 +09:00
AioiLight
0fbf5d67e3 Fix Japanese Translation 2018-11-06 22:52:01 +09:00
AioiLight
e8f93f55cb Fix Japanese Translation 2018-11-06 22:50:59 +09:00
LoveEevee
82963f7912 Disable scoresheet skipping, change multiplayer string and bg 2018-11-02 13:26:46 +03:00
LoveEevee
426bc160c6 P2: Add multiplayer session 2018-11-02 01:13:48 +03:00
LoveEevee
a4e119ecf6 GameConfig: Fix css assets 2018-10-28 14:54:15 +03:00
Bui
d1ae38e9c4 add assets_baseurl config option 2018-10-28 09:59:49 +00:00
Bui
2598a5014d add game config 2018-10-27 22:42:28 +01:00
LoveEevee
73e7d384cd Remove measures before first one, fix debug mouse events 2018-10-27 23:42:02 +03:00
LoveEevee
4a3675a97c Hide barlines when they should be hidden 2018-10-27 22:54:52 +03:00
LoveEevee
d7900ca083 SongSelect: Selectable text, assets cleanup, and bug fixes 2018-10-27 21:35:04 +03:00
Bui
0d1444de0c very important audio update 2018-10-26 14:58:31 +01:00
LoveEevee
378e275372 Fix view not cleaning some variables 2018-10-25 18:50:10 +03:00
LoveEevee
f90f6fe6e1 View: Rewrite 2018-10-25 17:18:41 +03:00
Bui
ab2e3d2417 update more keybinds 2018-10-23 15:51:55 +01:00
Bui
117e32e578 update default keybinds 2018-10-23 15:46:26 +01:00
LoveEevee
0b757c0983 Allow preview to start when there is an error converting 2018-10-18 02:54:00 +03:00
Bui
cb8b8b4a61 generate previews for songs 2018-10-17 22:16:53 +01:00
LoveEevee
0e1283c537 Add autoplay toggle, fix notes not being skipped on autoplay 2018-10-15 02:18:01 +03:00
LoveEevee
925e6b44bd Add restart and exit buttons, add restart shortcut, fix restarting on specific measures 2018-10-15 01:00:40 +03:00
LoveEevee
d4f242a236 Fix missing original timestamps 2018-10-14 23:33:22 +03:00
LoveEevee
122d3c06c8 Add key shortcut for debug, add starting measure and restart 2018-10-14 23:14:58 +03:00
LoveEevee
04473acb74 Add debugging user interface 2018-10-14 21:08:05 +03:00
LoveEevee
79108f8770 Hide overflow for root element 2018-10-14 15:14:08 +03:00
LoveEevee
773684c2cb Fix ios landscape again, add html linebreak to mailto 2018-10-14 14:25:10 +03:00
LoveEevee
89f352bc60 Add an issue template translation 2018-10-14 14:02:50 +03:00
LoveEevee
a0635812bb Add body to button links, add performance to diagnostic 2018-10-14 13:37:27 +03:00
LoveEevee
68d69d4a0a SongSelect: Add About screen 2018-10-14 11:14:36 +03:00
Bui
b16f74d252 scoresheet: don't wait for results if no crown 2018-10-13 10:08:00 +01:00
LoveEevee
09a3235574 Hide version link url from status bar 2018-10-13 02:52:21 +03:00
LoveEevee
faff06bbbd Fix back button on song select 2018-10-13 01:48:53 +03:00
LoveEevee
4845ec106b Add ura stars to preview, add ura badge 2018-10-13 01:09:42 +03:00
LoveEevee
fecf4d86b6 Add fallback font 2018-10-12 21:21:21 +03:00
LoveEevee
f80565f25b SongSelect: Add ura difficulty 2018-10-12 21:04:28 +03:00
LoveEevee
9c175231bf CanvasAsset: Change animation speed with bpm changes 2018-10-11 23:24:18 +03:00
LoveEevee
31ea8a546c PraseTja: Fix sub-measure bpm changes 2018-10-11 19:15:28 +03:00
LoveEevee
10de5582f1 Sync dai note faces and fix multiplayer 2018-10-11 04:21:37 +03:00
LoveEevee
4b986c62ec Fix empty measures being ignored 2018-10-11 02:41:02 +03:00
LoveEevee
39655fc534 Add .tja file support 2018-10-11 01:13:24 +03:00
Bui
9b2c740b9d prevent version link from being clicked during play on mobile 2018-10-10 22:51:07 +01:00
Bui
6f8cca98fc prevent css/js caching 2018-10-10 21:57:29 +01:00
Bui
b5e4e3fb2e change version text style 2018-10-10 21:30:10 +01:00
Bui
3e32dbdb57 change exception name 2018-10-10 21:07:27 +01:00
Bui
f46fc7a22d add version information to corner of screen 2018-10-10 21:00:50 +01:00
LoveEevee
190beb224d Songselect: Add cache for shadows 2018-10-09 16:23:21 +03:00
LoveEevee
7358d5c6bb Loader: Add blur and image testing 2018-10-09 10:10:58 +03:00
LoveEevee
fac283174f Gamepad: Add left stick and TaTaCon D-Pad 2018-10-09 02:20:34 +03:00
LoveEevee
32caec8fac Keyboard: Add TaTaCon buttons 2018-10-08 23:32:25 +03:00
Bui
13f9981e6f update tutorial 2018-10-08 09:58:10 +01:00
LoveEevee
869857d33c Fallback to wav if ogg is not supported, fix circles animation 2018-10-07 21:58:42 +03:00
LoveEevee
8565318c73 SoundBuffer: Fix AudioContext on Safari again 2018-10-07 07:22:44 +03:00
LoveEevee
8932160077 SoundBuffer: Fix AudioContext on Safari 2018-10-06 21:33:42 +03:00
LoveEevee
d36d013551 Hide keyboard tutorial from mobile users 2018-10-06 18:09:57 +03:00
LoveEevee
386b8905ac Shorten drum hit duration 2018-10-06 17:53:39 +03:00
LoveEevee
e1b8b45d88 Change drum to match Switch, add fullscreen to songsel, fix tutorial 2018-10-06 16:24:23 +03:00
LoveEevee
57632a83e5 Disable checking sound timer on touch devices 2018-10-06 10:23:36 +03:00
LoveEevee
c999dca204 Fix song restarting and multiple touches 2018-10-05 21:27:47 +03:00
LoveEevee
c8acfc3188 View: Add touch controls 2018-10-05 20:03:59 +03:00
LoveEevee
3e84c40184 Add autoplay badge, change game timing to new Date with fallback 2018-10-03 17:22:40 +03:00
LoveEevee
d6350a900c Scoresheet: Add counting up animation 2018-10-03 12:48:18 +03:00
LoveEevee
979f399d88 Crown fade in with easeIn 2018-10-01 15:05:21 +03:00
LoveEevee
59bce4d6ed Add pointer events to songsel and results 2018-10-01 14:48:25 +03:00
LoveEevee
ab1835aa48 Fix results not showing in Firefox 2018-10-01 13:02:28 +03:00
LoveEevee
fb836d7e77 Fix results crashing if other player disconnects early 2018-10-01 12:11:09 +03:00
LoveEevee
88317ae2d9 Allow unfocusing the tab before results are drawn 2018-10-01 11:57:24 +03:00
LoveEevee
fceb70897e Scoresheet: Change results screen 2018-10-01 10:33:43 +03:00
LoveEevee
9cd4bca060 Parsesong: Fix drumroll timing again 2018-09-27 21:39:25 +03:00
LoveEevee
92d3165744 Parsesong: Fix drumroll timing 2018-09-27 18:36:42 +03:00
LoveEevee
f4dbb30f11 Add default backgrounds 2018-09-27 04:08:43 +03:00
LoveEevee
8ffcdc16ac Do not play song sel when scrolling, fix pause menu 2018-09-27 01:20:41 +03:00
LoveEevee
b053dffec1 Added song select music, more keys 2018-09-27 00:12:50 +03:00
LoveEevee
f72c09f4a6 Scoresheet keys, songsel background, auto/p2 for gamepad 2018-09-26 23:06:14 +03:00
LoveEevee
71e180c7d7 Changed song selection screen 2018-09-26 21:30:57 +03:00
LoveEevee
fa818ad370 Add clear and endclear animations 2018-09-26 06:29:47 +03:00
LoveEevee
01d0a8104f Change note timing 2018-09-21 23:31:35 +03:00
LoveEevee
448927ad45 Fix tabbing out before drumrolls on auto play 2018-09-20 21:30:49 +03:00
LoveEevee
7958afc0f0 Fix fire animation and dai notes 2018-09-20 20:04:22 +03:00
LoveEevee
f8b81a9795 Fix Go-Go Time animation speed 2018-09-20 17:06:30 +03:00
LoveEevee
e3af27f23c Add Go-Go Time 2018-09-20 02:24:22 +03:00
LoveEevee
a49cc6a3c4 Add renda sound, dai notes scoring, fix music timing 2018-09-18 20:33:18 +03:00
LoveEevee
772dac579f Fix drumroll, pressed keys, pause menu, hide cursor 2018-09-18 16:59:40 +03:00
LoveEevee
9665ed2c13 Delete jQuery 2018-09-18 01:38:44 +03:00
LoveEevee
e8809285e0 Clean up classes before exiting them 2018-09-18 01:37:59 +03:00
LoveEevee
aa76d73583 Fix gamepads with only one button 2018-09-17 20:33:52 +03:00
LoveEevee
6b34c19a30 Check all connected gamepads 2018-09-17 19:25:47 +03:00
LoveEevee
41cc584295 Add drumroll count to the scoreboard 2018-09-15 20:27:53 +03:00
LoveEevee
749e657027 Add balloon and drumroll notes 2018-09-15 17:34:53 +03:00
LoveEevee
1d0fc88374 Add Don-chan 2018-09-14 01:55:23 +03:00
LoveEevee
0445f0e7ba Add port to websocket 2018-09-12 20:39:29 +03:00
LoveEevee
8e99da6aa2 Add 2-player mode 2018-09-12 20:10:00 +03:00
LoveEevee
1c92f3b344 Fix song previews 2018-09-11 20:24:40 +03:00
LoveEevee
2a6a6d0524 Fix some sounds 2018-09-11 17:50:10 +03:00
LoveEevee
0feb31227a Buffer every sound asset 2018-09-11 01:25:44 +03:00
LoveEevee
c7a47a56c6 Add element function 2018-09-09 07:11:05 +03:00
LoveEevee
1d67575b66 Scalable game canvas 2018-09-09 07:09:15 +03:00
LoveEevee
aeea39af00 Fix pressed keys and combo text 2018-09-05 20:35:57 +03:00
LoveEevee
79c4cfcd9d Lots of gameplay improvements 2018-09-05 19:46:26 +03:00
Bui
2405345291 add tutorial screen 2018-09-02 17:11:09 +01:00
Bui
a95f2e4319 use mekadon voices for autoplay 2018-09-02 13:05:08 +01:00
Bui
fbb35714ac add char-specific spacing for titles 2018-08-31 13:11:03 +01:00
LoveEevee
121a84911f Add gamepad support 2018-08-29 09:00:15 +03:00
LoveEevee
64a93f14ab Remove hardcoded keyCodes 2018-08-29 08:58:03 +03:00
LoveEevee
5a82469da5 Fix getting stuck at the loading screen 2018-08-29 08:55:16 +03:00
LoveEevee
874445bd47 Autoplay when restarting during an autoplay 2018-08-28 03:56:22 +03:00
LoveEevee
fcc3235bec Fix pausing during autoplay 2018-08-28 03:44:17 +03:00
LoveEevee
2f717614fb Add autoplay mode 2018-08-28 02:56:31 +03:00
Bui
58d5e3d748 restructure 2018-08-27 23:17:47 +01:00