What do i do wrong?
Posted: Mon Jan 07, 2013 7:35 pm
Hey, i got this strange error i dont know why happen
This is the code where the problem is:
And it all started when i addet setColor to the hero and a end on because i wanted it to have a different color than the rectangle that is the ground.
The same happend when i tried it with the text. So when i try to start my file, i get this:
What do i do wrong?
This is the code where the problem is:
Code: Select all
function love.draw()
-- Drawing some ground
love.graphics.setColor(255,0,0)
love.graphics.rectangle("fill", 0, 550, 800, 600)
end
-- Drawing the Hero ;D!
love.graphics.draw(hero, x, y)
love.graphics.setColor(250,0,0)
end
--Getting some text for the player to see
love.graphics.print("My first game :D!", 400, 300)
love.graphics.setColor(250,0,0)
end
The same happend when i tried it with the text. So when i try to start my file, i get this:
Code: Select all
Error
Syntax error: main.lua:35: '<eof>' expected near 'end'
Traceback
[C]: ?
[C]: in function 'require'
[C]: in the function 'xpcall'