Code: Select all
Error
Syntax Error: main.lua:10 '(' expected near "="
Traceback
[C]:?
[C]:in function 'require'
[C]:in function 'xpcall'
Code: Select all
-- Example: Create and use an Animation
--love.filesystem.load("AnAL.lua")()
require ("AnAL")
function love.load()
-- Set a lovely pink background color.
love.graphics.setBackgroundColor(246, 198, 222)
function anim1 = newAnimation(anim-boogie.png, 24, 24, 0.1, 6)
function animation:addFrame(0,0,31,30,3)end
function animation:addFrame(33,0,31,30,3)end
function animation:addFrame(65,0,31,30,3)end
function animation:addFrame(0,34,31,30,3)end
function animation:addFrame(34,34,31,30,3)end
function animation:addFrame(64,34,31,30,3)end
end
function love.update(dt)
-- The animation must be updated so it
-- knows when to change frames.
function anim1:update(dt)
end
function love.draw()
-- Draw the animation the center of the screen.
anim1:draw(400, 300, 0, 1, 1)
end