function love.load()
require 'anal'
k={}
k.x=15
k.y=10
k.w=50
k.h=50
k.speed=200
fF =love.graphics.newImage('f.png') -- 4 sprites going down 120x50 f.png
walkF=newAnimation(fF,30,50,0.1,0)
facing ='front'
end
function love.draw()
if facing== 'front' then
walkF:draw(k.x,k.y)
end
end
function love.update(dt)
if love.keyboard.isDown("s") then
k.y=k.y+k.speed*dt
walkF:update(dt)
facing ='front'
end
end
function love.keyreleased(key, unicode) --reset it
if key == 's' then
walkF=newAnimation(fF,30,50,0.1,0)
facing ='front'
end
end