mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 16:19:03 -06:00
Default field graphic fix
This commit is contained in:
parent
0c2ba5f0cc
commit
cb70967b82
@ -50,7 +50,7 @@ function GameScene:render()
|
|||||||
)
|
)
|
||||||
|
|
||||||
-- game frame
|
-- game frame
|
||||||
if self.game.grid.width == 10 then
|
if self.game.grid.width == 10 and self.game.grid.height == 24 then
|
||||||
love.graphics.draw(misc_graphics["frame"], 48, 64)
|
love.graphics.draw(misc_graphics["frame"], 48, 64)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ function GameScene:render()
|
|||||||
16 * self.game.grid.width, 16 * (self.game.grid.height - 4)
|
16 * self.game.grid.width, 16 * (self.game.grid.height - 4)
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.game.grid.width ~= 10 then
|
if self.game.grid.width ~= 10 and self.game.grid.height ~= 24 then
|
||||||
love.graphics.setColor(174/255, 83/255, 76/255, 1)
|
love.graphics.setColor(174/255, 83/255, 76/255, 1)
|
||||||
love.graphics.setLineWidth(8)
|
love.graphics.setLineWidth(8)
|
||||||
love.graphics.line(
|
love.graphics.line(
|
||||||
|
Loading…
Reference in New Issue
Block a user