more editor work on handling entity spawns

This commit is contained in:
lustlion
2022-03-10 10:21:10 +01:00
parent 6e76607030
commit 39b65571a0
10 changed files with 91 additions and 8 deletions

View File

@@ -15,6 +15,10 @@ function Animation:new(anim_data,speed)
return o
end
function Animation:getCenteredOffset()
return self.imgs[1]:getWidth()/2, self.imgs[1]:getHeight()/2
end
function Animation:change(anim_data)
if anim_data.path == self.path
then