Добавил логгинг
This commit is contained in:
parent
265dd00213
commit
3ec32796f0
3 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue