feature/animateTo #21

Merged
PeaAshMeter merged 5 commits from feature/animateTo into main 2025-11-11 17:45:16 +03:00
Showing only changes of commit e7e4071931 - Show all commits

View File

@ -40,17 +40,6 @@ function love.update(dt)
Tree.level.turnOrder:toggleTurns()
end
-- для тестов camera:animateTo
-- удалить как только потребность в тестах исчезнет
if Tree.controls:isJustPressed("cameraAnimateTo") then
local mousePosition = Tree.level.camera:toWorldPosition(Vec3 { love.mouse.getX(), love.mouse.getY() })
require('lib.animation_node') {
function(animationNode) Tree.level.camera:animateTo(mousePosition, animationNode) end,
onEnd = function() print('completed') end,
easing = require("lib.utils.easing").easeInOutCubic
}:run()
end
Tree.controls:cache()
local t2 = love.timer.getTime()