mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
Initial 3D blocks support
This commit is contained in:
@@ -2,6 +2,7 @@ local TitleScene = Scene:extend()
|
||||
|
||||
TitleScene.title = "Title"
|
||||
TitleScene.restart_message = false
|
||||
local drawBlock = require "tetris.components.draw_block"
|
||||
|
||||
local main_menu_screens = {
|
||||
ModeSelectScene,
|
||||
@@ -81,11 +82,20 @@ function TitleScene:render()
|
||||
|
||||
-- 490, 192
|
||||
for _, b in ipairs(block_offsets) do
|
||||
--[[
|
||||
love.graphics.draw(
|
||||
blocks["2tie"][b.color],
|
||||
490 + b.x, 192 + b.y, 0,
|
||||
2, 2
|
||||
)
|
||||
]]
|
||||
drawBlock(
|
||||
1, 1, 1, 1,
|
||||
blocks["2tie"][b.color],
|
||||
490 + b.x, 192 + b.y,
|
||||
false, false, false, false,
|
||||
true
|
||||
)
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Reference in New Issue
Block a user