BatsAndPray/lib/animx/Examples/Actor from XML/main.lua

8 lines
203 B
Lua
Raw Normal View History

2020-09-18 23:10:01 -05:00
animx=require 'animx'
alien=animx.newActor('alienPink.png')
:switch('swim'):getAnimation():loop():setDelay(.4)
function love.draw()
alien:draw(400,300,0,1,1,alien:getWidth()/2,alien:getHeight()/2)
end