Skip to content

Commit

Permalink
超音速hd模式重开的时候会微调音乐时间试图对齐动画节拍
Browse files Browse the repository at this point in the history
框架跟进
  • Loading branch information
MrZ626 committed Sep 21, 2023
1 parent 8a4a24d commit c1f362c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Zenitha
5 changes: 3 additions & 2 deletions assets/game/mechanicLib/mino/hypersonic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,13 @@ do-- hidden
local showVisTime=1000
local showFadeTime=1000

local bpm=130
local flashProbability=.1626
local flashInterval=math.floor(4*60*1000/130/2^(-1/12)+.5)
local flashInterval=math.floor(4*60*1000/bpm/2^(-1/12)+.5)
local flashVisTime1,flashVisTime2=120,460
local flashFadeTime=620

local endAllInterval=math.floor(60*1000/130/2^(-1/12)+.5)
local endAllInterval=math.floor(60*1000/bpm/2^(-1/12)+.5)
local endVisTime1,endVisTime2=620,723
local endFadeTime=1260

Expand Down
1 change: 1 addition & 0 deletions assets/game/mode/mino/exterior/hypersonic_hd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ return {
playBgm('secret7th','base')
BGM.set('secret7th/melody1','volume',0,0)
BGM.set('all','pitch',2^(-1/12),0)
BGM.set('all','seek',MATH.roundUnit(BGM.tell(),60/130))
end,
settings={mino={
event={
Expand Down
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ SFX.load((function()
local L={}
for _,v in next,love.filesystem.getDirectoryItems(path) do
if FILE.isSafe(path..v) then
L[v:sub(1,-5)]=path..v:sub(1,-5)..'.ogg'
L[v:sub(1,-5)]=path..v
end
end
return L
Expand Down

0 comments on commit c1f362c

Please sign in to comment.