Added SetCameraBop
This commit is contained in:
parent
cb654a69a1
commit
19c86a3284
@ -118,6 +118,7 @@ local function state(songName, songDifficulty, show)
|
||||
local uiZoom = 1
|
||||
local mustZoom = 2
|
||||
local iconZoom = 1
|
||||
local zoomIntensivity = 1
|
||||
|
||||
local combo = 0
|
||||
local highestCombo = 0
|
||||
@ -146,6 +147,7 @@ local function state(songName, songDifficulty, show)
|
||||
|
||||
local icons = {}
|
||||
|
||||
|
||||
local data = love.filesystem.getSaveDirectory()
|
||||
|
||||
local ui = {
|
||||
@ -181,6 +183,8 @@ local function state(songName, songDifficulty, show)
|
||||
local keyBinds = {} -- loaded from settings.json, if anything's wrong then try rebinding in the menu
|
||||
local offset = 0
|
||||
|
||||
local beatrate = 4
|
||||
|
||||
local paused = false
|
||||
local elapsed = 0
|
||||
|
||||
@ -529,9 +533,9 @@ local function state(songName, songDifficulty, show)
|
||||
end
|
||||
end
|
||||
end
|
||||
if beat % 4 == 0 then
|
||||
zoom = zoom + .02
|
||||
uiZoom = uiZoom + .05
|
||||
if beat % beatrate == 0 then
|
||||
zoom = zoom + (.02 * zoomIntensivity)
|
||||
uiZoom = uiZoom + (.05 * zoomIntensivity)
|
||||
end
|
||||
else
|
||||
for name, character in next, characters do
|
||||
@ -742,6 +746,9 @@ local function state(songName, songDifficulty, show)
|
||||
if not characters[chars[event.vars.char] or event.vars.char].hasStagePosition then
|
||||
characters[chars[event.vars.char] or event.vars.char].stagePosition = Vector2(stage.opponent[1], stage.opponent[2])
|
||||
end
|
||||
elseif event.name == "setcamerabop" then
|
||||
beatrate = event.vars.rate
|
||||
zoomIntensivity = event.vars.intensity
|
||||
end
|
||||
|
||||
for index, module in next, modules do
|
||||
|
Loading…
x
Reference in New Issue
Block a user