mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 12:49:01 -06:00
Reverted a mode select change
This commit is contained in:
parent
ca85107063
commit
d7f4aa2007
@ -39,24 +39,14 @@ end
|
|||||||
function ModeSelectScene:update()
|
function ModeSelectScene:update()
|
||||||
switchBGM(nil) -- experimental
|
switchBGM(nil) -- experimental
|
||||||
|
|
||||||
if self.das_up or self.das_down or self.das_left or self.das_right then
|
if self.das_up or self.das_down then
|
||||||
self.das = self.das + 1
|
self.das = self.das + 1
|
||||||
else
|
else
|
||||||
self.das = 0
|
self.das = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.das >= 15 then
|
if self.das >= 15 then
|
||||||
local change = 0
|
self:changeOption(self.das_up and -1 or 1)
|
||||||
if self.das_up then
|
|
||||||
change = -1
|
|
||||||
elseif self.das_down then
|
|
||||||
change = 1
|
|
||||||
elseif self.das_left then
|
|
||||||
change = -9
|
|
||||||
elseif self.das_right then
|
|
||||||
change = 9
|
|
||||||
end
|
|
||||||
self:changeOption(change)
|
|
||||||
self.das = self.das - 4
|
self.das = self.das - 4
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -146,26 +136,10 @@ function ModeSelectScene:onInputPress(e)
|
|||||||
self:changeOption(-1)
|
self:changeOption(-1)
|
||||||
self.das_up = true
|
self.das_up = true
|
||||||
self.das_down = nil
|
self.das_down = nil
|
||||||
self.das_left = nil
|
|
||||||
self.das_right = nil
|
|
||||||
elseif e.input == "down" or e.scancode == "down" then
|
elseif e.input == "down" or e.scancode == "down" then
|
||||||
self:changeOption(1)
|
self:changeOption(1)
|
||||||
self.das_down = true
|
self.das_down = true
|
||||||
self.das_up = nil
|
self.das_up = nil
|
||||||
self.das_left = nil
|
|
||||||
self.das_right = nil
|
|
||||||
elseif e.input == "left" or e.scancode == "left" then
|
|
||||||
self:changeOption(-9)
|
|
||||||
self.das_left = true
|
|
||||||
self.das_right = nil
|
|
||||||
self.das_up = nil
|
|
||||||
self.das_down = nil
|
|
||||||
elseif e.input == "right" or e.scancode == "right" then
|
|
||||||
self:changeOption(9)
|
|
||||||
self.das_right = true
|
|
||||||
self.das_left = nil
|
|
||||||
self.das_up = nil
|
|
||||||
self.das_down = nil
|
|
||||||
elseif e.input == "left" or e.input == "right" or e.scancode == "left" or e.scancode == "right" then
|
elseif e.input == "left" or e.input == "right" or e.scancode == "left" or e.scancode == "right" then
|
||||||
self:switchSelect()
|
self:switchSelect()
|
||||||
elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then
|
elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then
|
||||||
@ -180,10 +154,6 @@ function ModeSelectScene:onInputRelease(e)
|
|||||||
self.das_up = nil
|
self.das_up = nil
|
||||||
elseif e.input == "down" or e.scancode == "down" then
|
elseif e.input == "down" or e.scancode == "down" then
|
||||||
self.das_down = nil
|
self.das_down = nil
|
||||||
elseif e.input == "right" or e.scancode == "right" then
|
|
||||||
self.das_right = nil
|
|
||||||
elseif e.input == "left" or e.scancode == "left" then
|
|
||||||
self.das_left = nil
|
|
||||||
elseif e.input then
|
elseif e.input then
|
||||||
self.secret_inputs[e.input] = false
|
self.secret_inputs[e.input] = false
|
||||||
end
|
end
|
||||||
@ -217,4 +187,4 @@ function ModeSelectScene:changeRuleset(rel)
|
|||||||
self.menu_state.ruleset = Mod1(self.menu_state.ruleset + rel, len)
|
self.menu_state.ruleset = Mod1(self.menu_state.ruleset + rel, len)
|
||||||
end
|
end
|
||||||
|
|
||||||
return ModeSelectScene
|
return ModeSelectScene
|
Loading…
Reference in New Issue
Block a user