mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 20:29:02 -06:00
C99 improvements
This commit is contained in:
parent
c0a0daeec8
commit
7ff68fd878
@ -140,10 +140,6 @@ function MarathonC99Game:startLeftDAS()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function MarathonC99Game:onSoftDrop(dropped_row_count)
|
|
||||||
self.score = self.score + dropped_row_count
|
|
||||||
end
|
|
||||||
|
|
||||||
function MarathonC99Game:advanceOneFrame(inputs, ruleset)
|
function MarathonC99Game:advanceOneFrame(inputs, ruleset)
|
||||||
if self.clear then
|
if self.clear then
|
||||||
if self.level == 17 then
|
if self.level == 17 then
|
||||||
@ -153,18 +149,17 @@ function MarathonC99Game:advanceOneFrame(inputs, ruleset)
|
|||||||
self.completed = true
|
self.completed = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if inputs.rotate_right or inputs.rotate_right2 or
|
|
||||||
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3)
|
|
||||||
and self.piece ~= nil then
|
|
||||||
self.ccw_bonus = 0
|
|
||||||
end
|
|
||||||
elseif self.ready_frames == 0 then
|
elseif self.ready_frames == 0 then
|
||||||
self.frames = self.frames + 1
|
self.frames = self.frames + 1
|
||||||
|
end
|
||||||
|
if self.piece ~= nil then
|
||||||
if inputs.rotate_right or inputs.rotate_right2 or
|
if inputs.rotate_right or inputs.rotate_right2 or
|
||||||
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3)
|
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3) then
|
||||||
and self.piece ~= nil then
|
|
||||||
self.ccw_bonus = 0
|
self.ccw_bonus = 0
|
||||||
end
|
end
|
||||||
|
if inputs.down then
|
||||||
|
self.score = self.score + 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user