Commit Graph

252 Commits

Author SHA1 Message Date
LoveEevee
1759772831 ScoreStorage: Use hashes instead of song titles 2020-03-07 04:48:30 +03:00
LoveEevee
0221c977c8 SongSelect: Add crowns
- Improve the soul gauge to fill properly. The algorithm is different for each difficulty.
- Saves score to localStorage, the whole score is correct now.
- Adds crowns to song selection screen.

The scores would take a lot of space if stored as readable objects so they are stored compressed. If you need to edit your scores, you can do so by opening dev console and entering `scoreStorage.get()`. Expand to the song and double click on values that you need to edit. When you are done editing, do not forget to save your scores with `scoreStorage.save()`. Adding new scores can be done with `scoreStorage.add`, first get a template with `obj=scoreStorage.template(),obj` and after editing, add it with `scoreStorage.add("song name", "oni", obj)`. To remove a score use `scoreStorage.remove("song name"[, "oni"])`.
2020-03-06 20:57:01 +03:00
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
c76931e7db Add category jump buttons to song select 2020-02-22 20:27:57 +03:00
Bui
28b837fbf1
Merge branch 'master' into cat-jump 2020-02-22 13:50:46 +00:00
Bui
ce4d8ce31f
Merge pull request #181 from bui/audio-update
Audio update
2020-02-22 13:14:05 +00:00
Bui
b030624ab1 fix combo voice load error 2020-02-22 13:13:04 +00:00
Bui
750dc66245 improve category jump 2020-02-22 13:09:07 +00:00
Bui
c900f13340
Merge pull request #171 from purerosefallen/note_word
update the words below the notes
2020-02-22 08:46:42 +00:00
Bui
9f7ce52cb4 only load combo voices as needed 2019-12-24 19:37:10 +00:00
Bui
91e5127613 audio update 2019-12-24 18:10:40 +00: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
Bui
34d0bd01d4 SongSelect: category jumping 2019-11-27 01:45:28 +00:00
Bui
7a50dec558 fix maker detection for local tja 2019-11-26 13:40:42 +00:00
Bui
ea04771d00 always save selected song 2019-11-25 16:38:14 +00:00
Bui
30bc2b1002 handle invalid maker ids 2019-11-25 01:44:40 +00:00
Bui
8cc1b940e1 read maker from local tja 2019-11-25 01:04:59 +00:00
Bui
42f22a4f09 allow anonymous makers 2019-11-25 00:58:07 +00:00
Bui
67e418bc4d SongSelect: Add maker identification
requires maker_id(int) column in songs table, and a new "makers" table with maker_id(int), name(text), url(text)
2019-11-24 23:51:58 +00:00
purerosefallen
4c80505de5
fix 2019-11-05 10:01:29 +08:00
LoveEevee
1bb3359784 Use stars on song select for score level 2019-11-04 17:20:44 +03:00
purerosefallen
02c377e9cf
update the words below the notes 2019-11-04 20:59:28 +08:00
purerosefallen
84377f62b0
only for safety 2019-11-03 10:40:43 +08:00
purerosefallen
cd7015f582
fix 2019-11-02 09:53:15 +08:00
purerosefallen
88fc5dbbb6
improve 2019-11-02 00:45:53 +08:00
purerosefallen
f3f57ea1a5
fix 2019-11-01 00:47:43 +08:00
purerosefallen
8574ad2580
add auto score 2019-11-01 00:12:20 +08:00
Bui
41a64965a7 remove hardcoded email address 2019-09-15 17:15:41 +01:00
purerosefallen
be0b0c61cf
new score 2019-06-21 11:54:26 +08:00
Bui
6c2067526a
fix syntax error 2019-05-03 04:15:30 +01:00
Bui
5a36e63f36
Display all settings on first load 2019-05-03 03:59:31 +01:00
LoveEevee
7b67be87d3 Fix views on small resolutions 2019-04-17 00:33:50 +03:00
LoveEevee
454028a7e6 Fix tutorial not saving 2019-04-16 23:29:26 +03:00
LoveEevee
f5d4c6bce5 Improve gamepad layout window 2019-04-16 22:48:21 +03:00
LoveEevee
f05b2518f3 Split language and tutorial, add gamepad settings 2019-04-16 21:06:41 +03:00
LoveEevee
a4d938e888 Move language settings from title screen 2019-04-06 22:14:44 +03:00
LoveEevee
a33ff2a868 Fix keys not resetting 2019-04-06 13:26:06 +03:00
LoveEevee
b3c0f8cd73 Add language to settings 2019-04-06 13:19:10 +03:00
LoveEevee
8565a3cbba Remove gamepad layout settings 2019-04-06 00:10:15 +03:00
LoveEevee
59fc718a08 Fix touching settings 2019-04-05 23:21:22 +03:00
LoveEevee
879186c313 Add keyboard and gamepad settings 2019-04-05 22:53:51 +03:00
LoveEevee
3f533a0255 Add background music 2019-04-05 12:36:14 +03:00
LoveEevee
78528b424c Fix results screen, clear drum asset 2019-04-05 00:21:08 +03:00
LoveEevee
cb64777012 SongSelect: Add Settings
- Resolution can be adjusted, as well as touch drum animation on mobile
- A translation text file "songtitle.txt" can be imported
  - Titles and translated titles are each on their own line, if a line begins with a language code, it will translate the song title that is above
  - An example file can be found here: https://gist.github.com/LoveEevee/65fe66f0b54c0536f96fd2f4862984d4
- The page will fail to load if version on the page does not match /api/config
- Disabled Tab key while playing, before hitting it would focus the version link
- Fix forcing branches in debug not working
- Fixed not being able to click on songs that do not have oni but have ura
- Fix unexpected category being used as a fallback
- Fix verticalText and layeredText not accepting anything except strings
2019-04-04 23:40:11 +03:00
LoveEevee
267461dd84 Clean more caches 2019-03-22 13:47:10 +03:00
LoveEevee
911da048bb Fix code
- Fixes code
2019-03-20 17:00:30 +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
7ee8773e61 View: Fix donbg scrolling
- All metadata fields in imported TJA files are now optional
- Added new metadata fields: `TITLEEN` and `SUBTITLEEN` (`EN` can be any language id from strings.js)
2019-03-06 00:48:30 +03:00
LoveEevee
fbbed1a714 Fix note streams on key press 2019-02-24 18:13:41 +03:00