mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 13:59:03 -06:00
Two changes to gamemode.lua (read comments)
Shape is now passed as an argument to ruleset:getDefaultOrientation() Fixed the comment for GameMode:transformScreen()
This commit is contained in:
parent
ed5ea72e66
commit
c7d0034f9b
@ -518,7 +518,7 @@ function GameMode:hold(inputs, ruleset, ihs)
|
|||||||
self.hold_queue = {
|
self.hold_queue = {
|
||||||
skin = self.piece.skin,
|
skin = self.piece.skin,
|
||||||
shape = self.piece.shape,
|
shape = self.piece.shape,
|
||||||
orientation = ruleset:getDefaultOrientation(),
|
orientation = ruleset:getDefaultOrientation(self.piece.shape),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if data == nil then
|
if data == nil then
|
||||||
@ -901,9 +901,10 @@ end
|
|||||||
function GameMode:drawCustom() end
|
function GameMode:drawCustom() end
|
||||||
|
|
||||||
-- transforms specified in here will transform the whole screen
|
-- transforms specified in here will transform the whole screen
|
||||||
-- if you want a transform for a particular component, specify
|
-- if you want a transform for a particular component, push the
|
||||||
-- it in that component's draw function and then make sure to
|
-- default transform by using love.graphics.push(), do your
|
||||||
-- reset it to origin at the end of that component's draw call!
|
-- transform, and then love.graphics.pop() at the end of that
|
||||||
|
-- component's draw call!
|
||||||
function GameMode:transformScreen() end
|
function GameMode:transformScreen() end
|
||||||
|
|
||||||
function GameMode:draw(paused)
|
function GameMode:draw(paused)
|
||||||
|
Loading…
Reference in New Issue
Block a user