using drawTextBox for editor info and spawn info
adjustement of keybinds
This commit is contained in:
@@ -140,10 +140,12 @@ function drawEditor()
|
||||
drawGridDisplay()
|
||||
drawGameworldForeground()
|
||||
endGameworldDraw()
|
||||
doEditorEdit()
|
||||
drawSpawns()
|
||||
|
||||
drawEditorRooms()
|
||||
drawSpawns()
|
||||
|
||||
doEditorEdit()
|
||||
|
||||
drawSelectingPaletteTile()
|
||||
|
||||
if editor.palette_mode then
|
||||
@@ -172,8 +174,14 @@ function doEditorEdit()
|
||||
expand_v = vertical
|
||||
end
|
||||
love.graphics.setColor(100, 100, 100, 0.8)
|
||||
love.graphics.print("> " .. horizontal .. ", " .. vertical .. "; " .. math.floor(mouse_x / game.scale + Camera.pos.x) .. ", " .. math.floor(mouse_y / game.scale + Camera.pos.y))
|
||||
love.graphics.print("> " .. level_width .. "(" .. expand_h .. "), " .. level_height .. "(".. expand_v .. ")", 0, 10)
|
||||
drawTextBox(
|
||||
"Coords: [" ..
|
||||
horizontal .. "," .. vertical .. "] (tile)\t[" ..
|
||||
math.floor(mouse_x / game.scale + Camera.pos.x) .. "," .. math.floor(mouse_y / game.scale + Camera.pos.y).."] (pixel)\n" ..
|
||||
"Level size: [" .. level_width .. ", " .. level_height .. "] +(" .. expand_h .. "," .. expand_v .. ")",
|
||||
0,
|
||||
0
|
||||
)
|
||||
|
||||
if editor.room_mode then
|
||||
local rx = horizontal * tile_properties.width
|
||||
|
||||
Reference in New Issue
Block a user