mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-12-25 11:39:02 -06:00
Condensed GF
This commit is contained in:
parent
9f96afd1a0
commit
80d87db1d2
@ -19,6 +19,7 @@ function MarathonGFGame:new()
|
||||
self.message_timer = 0
|
||||
self.randomizer = Bag7Randomizer()
|
||||
self.combo = 0
|
||||
self.immobile_spin_bonus = true
|
||||
|
||||
self.lock_drop = true
|
||||
self.lock_hard_drop = true
|
||||
@ -129,28 +130,6 @@ function MarathonGFGame:updateScore(level, drop_bonus, cleared_lines)
|
||||
else self.combo = 0 end
|
||||
end
|
||||
|
||||
function MarathonGFGame:onAttemptPieceMove(piece)
|
||||
if self.piece ~= nil then
|
||||
if not piece:isMoveBlocked(self.grid, { x=-1, y=0 }) and
|
||||
not piece:isMoveBlocked(self.grid, { x=1, y=0 }) then
|
||||
piece.spin = false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function MarathonGFGame:onAttemptPieceRotate(piece)
|
||||
if self.piece ~= nil then
|
||||
if piece:isDropBlocked(self.grid) and
|
||||
piece:isMoveBlocked(self.grid, { x=-1, y=0 }) and
|
||||
piece:isMoveBlocked(self.grid, { x=1, y=0 }) and
|
||||
piece:isMoveBlocked(self.grid, { x=0, y=-1 }) then
|
||||
piece.spin = true
|
||||
else
|
||||
piece.spin = false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function MarathonGFGame:onPieceLock(piece, cleared_row_count)
|
||||
self.super:onPieceLock()
|
||||
if self.grid:checkForBravo(cleared_row_count) then
|
||||
|
Loading…
Reference in New Issue
Block a user