Добавил логгинг

This commit is contained in:
Иван Кузьменко 2025-09-07 07:08:48 +03:00
parent 265dd00213
commit 3ec32796f0
3 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,7 @@
function love.conf(t)
t.console = true
if t.dos then
t.dos.console = "COM1"
-- t.dos.console = "c:\\test.log"
end
end

View file

@ -67,9 +67,11 @@ function love.draw()
love.graphics.clear()
love.graphics.setFont(bf)
-- local time = love.timer.getTime()
tilemap.offsetX = math.floor(mapX) -- 50 + math.floor(math.cos(time) * 25)
tilemap.offsetY = math.floor(mapY) -- 50 + math.floor(math.sin(time) * 25)
-- tilemap.offsetX = math.floor(mapX)
-- tilemap.offsetY = math.floor(mapY)
local time = love.timer.getTime()
tilemap.offsetX = 50 + math.floor(math.cos(time) * 25)
tilemap.offsetY = 50 + math.floor(math.sin(time) * 25)
tilemap:update()
local tilemapPosX = tilemap.offsetX
local tilemapPosY = tilemap.offsetY
@ -86,6 +88,9 @@ function love.draw()
end
function love.keypressed(key)
if key == "space" then
print("TEST!!")
end
if key == "escape" then
os.exit()
end