pull/6/head
Rin 2021-08-21 20:22:45 +01:00
parent 7cd07a4d97
commit d22a5d821c
2 changed files with 6 additions and 5 deletions

View File

@ -8,8 +8,8 @@ DualityA1Game.name = "Duality A1"
DualityA1Game.hash = "DualityA1" DualityA1Game.hash = "DualityA1"
DualityA1Game.tagline = "Control two boards at once!" DualityA1Game.tagline = "Control two boards at once!"
function DualityA1Game:new() function DualityA1Game:new(c)
DualityA1Game.super:new() DualityA1Game.super:new(c)
self.randomizer = SplitHistoryRandomizer() self.randomizer = SplitHistoryRandomizer()
self.other_grid = Grid(10, 24) self.other_grid = Grid(10, 24)
self.next_queue_length = 2 self.next_queue_length = 2

View File

@ -159,10 +159,11 @@ function MarathonC99Game:advanceOneFrame(inputs, ruleset)
self.frames = self.frames + 1 self.frames = self.frames + 1
end end
if self.piece ~= nil then if self.piece ~= nil then
local lo = self.piece.last_orientation or self.piece.rotation
if not ( if not (
self.piece.rotation - self.piece.last_orientation == -1 or -- 3 >> 2, 2 >> 1, 1 >> 0 self.piece.rotation - lo == -1 or -- 3 >> 2, 2 >> 1, 1 >> 0
self.piece.rotation - self.piece.last_orientation == 3 or -- 0 >> 3 self.piece.rotation - lo == 3 or -- 0 >> 3
self.piece.rotation - self.piece.last_orientation == 0 -- not rotated self.piece.rotation - lo == 0 -- not rotated
) then ) then
self.ccw_bonus = 0 self.ccw_bonus = 0
end end