Commit Graph

59 Commits

Author SHA1 Message Date
LoveEevee
21259abdda Scoresheet: Save results to localstorage 2020-03-06 19:02:40 +03:00
LoveEevee
41afc2a905 Game: Improve gauge 2020-03-05 18:58:49 +03:00
LoveEevee
ff09cb83bd Add global offset
Adds new settings for controlling the note offset while playing. It can be either an actual offset (it is called "Audio Latency" in the settings) or just the visual offset ("Video Latency").
With higher audio latency it means you have to press the button sooner than what you hear, similarly with higher video latency it is sooner than what you see. By offsetting these events the game would play better, however, the sound effect of you hitting the drum would still play at the wrong time, the code cannot anticipate you to hit the drum in the future so to work around this issue a new option that disables drum sounds is also included.
These settings could be set through trial and error but it would be better to get the correct values through the automated latency calibration, where you can hit the drum as you hear sounds or see a blinking animation. I tried making one by measuring latency from user input, adding all the latency up, and dividing, but that gives unreliable results. I hope someone suggests to me what I should be doing during the calibration to get better results, as I cannot figure what to do on my own.
2019-11-28 09:04:40 +03:00
LoveEevee
f05b2518f3 Split language and tutorial, add gamepad settings 2019-04-16 21:06:41 +03:00
LoveEevee
879186c313 Add keyboard and gamepad settings 2019-04-05 22:53:51 +03:00
LoveEevee
78528b424c Fix results screen, clear drum asset 2019-04-05 00:21:08 +03:00
LoveEevee
61a5d6d496 SoundBuffer: Set song volume
- Requires a new column in the database after preview: `volume` REAL
- The value is a volume multiplier, if the value is set to null or 1 there will be no change
- The volume can be set in debugger
- Imported TJA files are now read from disk every time the song is played, freeing some memory and making it easier to create charts
- Correctly parse TJA files with alphabet notes, added "A" and "B" notes, which appear as DON (Big) and KA (Big) respectively
2019-03-16 00:34:48 +03:00
LoveEevee
e677f2f032 Change some events, fix p2 sending gameend twice
- Fixed gameend being sent twice in p2
- Add `ready`, `loader-error`, and `song-select-random` events
- Fixed `session-start` not firing when invited, added event detail
- Fixed `language-change` being fired at startup
- Fixed `version-link` and `about-link` firing twice
- "#song=" will fire `song-select-difficulty`
- Removed `key-events` and `scoresheet-player2`, merged with `scoresheet` and made it more detailed
2019-02-15 01:10:34 +03:00
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
LoveEevee
4d2c17c1e0 Support different results characters for debug mode 2019-02-12 03:31:20 +03:00
Bui
913c0787ef audio overhaul 2019-02-04 09:14:42 +00:00
LoveEevee
8d50b9ceea BrowserSupport: Translate 2019-01-26 21:29:13 +03:00
LoveEevee
e8768cc35e Strings: Translate views 2019-01-22 21:47:09 +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
LoveEevee
3398791afe Controller: Separate game and view loops 2019-01-16 15:33:42 +03:00
LoveEevee
8bc9aee594 ImportSongs: Add song genre 2019-01-05 10:44:28 +03: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
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
LoveEevee
b06d6d8412 View: Blue gauge for second player 2018-11-06 22:26:58 +03: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
d7900ca083 SongSelect: Selectable text, assets cleanup, and bug fixes 2018-10-27 21:35:04 +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
LoveEevee
773684c2cb Fix ios landscape again, add html linebreak to mailto 2018-10-14 14:25:10 +03:00
Bui
b16f74d252 scoresheet: don't wait for results if no crown 2018-10-13 10:08:00 +01: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
190beb224d Songselect: Add cache for shadows 2018-10-09 16:23:21 +03:00
LoveEevee
32caec8fac Keyboard: Add TaTaCon buttons 2018-10-08 23:32:25 +03:00
LoveEevee
e1b8b45d88 Change drum to match Switch, add fullscreen to songsel, fix tutorial 2018-10-06 16:24:23 +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
92d3165744 Parsesong: Fix drumroll timing 2018-09-27 18:36:42 +03:00