mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
ff09cb83bd
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.
92 lines
1.5 KiB
CSS
92 lines
1.5 KiB
CSS
#game{
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
background-size: calc(100vh / 720 * 512);
|
|
background-position: center;
|
|
}
|
|
#screen.view{
|
|
background-image: none;
|
|
background-color: #000;
|
|
}
|
|
#canvas{
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
#touch-drum{
|
|
display: none;
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 50%;
|
|
height: 50%;
|
|
text-align: center;
|
|
margin: auto;
|
|
overflow: hidden;
|
|
}
|
|
#touch-drum-img{
|
|
width: 100%;
|
|
height: 100%;
|
|
background-position: top;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
}
|
|
#touch-buttons{
|
|
display: none;
|
|
position: absolute;
|
|
top: 8vh;
|
|
right: 2vh;
|
|
opacity: 0.5;
|
|
z-index: 5;
|
|
}
|
|
#touch-buttons div{
|
|
display: inline-block;
|
|
width: 12.5vmin;
|
|
height: 12.5vmin;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.portrait #touch-buttons{
|
|
top: 11vh;
|
|
}
|
|
.touchp2 #touch-buttons{
|
|
top: -1.9vh;
|
|
}
|
|
.touch-visible #touch-drum,
|
|
.touch-visible #touch-buttons{
|
|
display: block;
|
|
}
|
|
.touch-visible .window{
|
|
width: 80vmin;
|
|
height: 53vmin;
|
|
}
|
|
.touch-visible #pause-menu .window button{
|
|
font-size: 5vmin;
|
|
}
|
|
.touch-visible #pause-menu .window button.selected{
|
|
color: #000;
|
|
background: #fff;
|
|
border-color: #ae7a26;
|
|
}
|
|
.touch-results #touch-pause-btn{
|
|
display: none;
|
|
}
|
|
#fade-screen{
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: transparent;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
transition: 1s background-color linear;
|
|
}
|
|
.fix-animations *{
|
|
animation: none !important;
|
|
}
|