mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 07:29:03 -06:00
Set a fixed height for piece previews
This commit is contained in:
parent
8fef7faa6a
commit
fcd8b0f360
@ -341,8 +341,8 @@ end
|
||||
function GameMode:drawNextQueue(ruleset)
|
||||
function drawPiece(piece, skin, offsets, pos_x, pos_y)
|
||||
for index, offset in pairs(offsets) do
|
||||
local x = ruleset.spawn_positions[piece].x + offset.x
|
||||
local y = ruleset.spawn_positions[piece].y + offset.y
|
||||
local x = offset.x + ruleset.spawn_positions[piece].x
|
||||
local y = offset.y + 4.7
|
||||
love.graphics.draw(blocks[skin][piece], pos_x+x*16, pos_y+y*16)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user