mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 20:19:03 -06:00
10-wide graphic restored
This commit is contained in:
parent
512c2149f0
commit
2de13a97f0
@ -50,28 +50,33 @@ function GameScene:render()
|
|||||||
)
|
)
|
||||||
|
|
||||||
-- game frame
|
-- game frame
|
||||||
-- love.graphics.draw(misc_graphics["frame"], 48, 64)
|
if self.game.grid.width == 10 then
|
||||||
|
love.graphics.draw(misc_graphics["frame"], 48, 64)
|
||||||
|
end
|
||||||
|
|
||||||
love.graphics.setColor(0, 0, 0, 200)
|
love.graphics.setColor(0, 0, 0, 200)
|
||||||
love.graphics.rectangle("fill", 64, 80, 16 * self.game.grid.width, 320)
|
love.graphics.rectangle("fill", 64, 80, 16 * self.game.grid.width, 320)
|
||||||
|
|
||||||
love.graphics.setColor(174/255, 83/255, 76/255, 1)
|
if self.game.grid.width ~= 10 then
|
||||||
love.graphics.setLineWidth(8)
|
love.graphics.setColor(174/255, 83/255, 76/255, 1)
|
||||||
love.graphics.line(
|
love.graphics.setLineWidth(8)
|
||||||
60,76,
|
love.graphics.line(
|
||||||
68+16*self.game.grid.width,76,
|
60,76,
|
||||||
68+16*self.game.grid.width,404,
|
68+16*self.game.grid.width,76,
|
||||||
60,404,
|
68+16*self.game.grid.width,404,
|
||||||
60,76
|
60,404,
|
||||||
)
|
60,76
|
||||||
love.graphics.setColor(203/255, 137/255, 111/255, 1)
|
)
|
||||||
love.graphics.setLineWidth(4)
|
love.graphics.setColor(203/255, 137/255, 111/255, 1)
|
||||||
love.graphics.line(
|
love.graphics.setLineWidth(4)
|
||||||
60,76,
|
love.graphics.line(
|
||||||
68+16*self.game.grid.width,76,
|
60,76,
|
||||||
68+16*self.game.grid.width,404,
|
68+16*self.game.grid.width,76,
|
||||||
60,404,
|
68+16*self.game.grid.width,404,
|
||||||
60,76
|
60,404,
|
||||||
)
|
60,76
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
self.game:drawGrid()
|
self.game:drawGrid()
|
||||||
self.game:drawPiece()
|
self.game:drawPiece()
|
||||||
|
Loading…
Reference in New Issue
Block a user