Page 1 of 1
Syntax error
Posted: Wed Mar 06, 2013 12:08 pm
by taka
Hello
this is my first time using love2d, i am using sockmunkeedev's tutorials which are really helpful, to learn how to code and create games.As i was following his tutorials i got stuck with getting an error(Syntax error: main.lua:1: '=' expected near 'player'), so i was wondering if you guys could help me with this
I have added the .love file so you guys can check it out
Re: Syntax error
Posted: Wed Mar 06, 2013 12:57 pm
by micha
Hi,
welcome to the löve community.
first a general comment: If löve tells you about an error, it always says where the error is. In this case
means first line in main.lua.
The solution: You forgot the quotation marks in the require commands. Put
then the error is gone.
You get some other error after that one, mostly typos: In one file you put a "=" instead "-", you misspelled keyboard in one file and last you forgot one "end" in the map collision part.
After you fix these errors, it works.
Re: Syntax error
Posted: Wed Mar 06, 2013 1:10 pm
by taka
haha thank you so much
now i will get back to learning more