Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this.
-
PedroChurro
- Prole
- Posts: 25
- Joined: Tue Oct 09, 2012 8:22 pm
- Location: In my room
Post
by PedroChurro » Thu Oct 11, 2012 7:33 pm
Hi, it's me, again, with another noob question.
So, I'm looking at the code for hours, and I still don't know why this error is happening:
Code: Select all
Error
Syntax error: main.lua:1: '=' expected near 'player'
Traceback
[C]: ?
[C]: in function 'require'
[C]: in function 'xpcall'
Please tell me if you need to take a look at the code.
I try to make games.
-
Nixola
- Inner party member
- Posts: 1949
- Joined: Tue Dec 06, 2011 7:11 pm
- Location: Italy
Post
by Nixola » Thu Oct 11, 2012 7:35 pm
I think the first line of main.lua should be enough... Is it something like "require player"? If it is, edit it into "require 'player' "
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
PedroChurro
- Prole
- Posts: 25
- Joined: Tue Oct 09, 2012 8:22 pm
- Location: In my room
Post
by PedroChurro » Thu Oct 11, 2012 7:40 pm
Nixola wrote:I think the first line of main.lua should be enough... Is it something like "require player"? If it is, edit it into "require 'player' "
Thanks, that worked.
Also, could anyone explain me why everyone has "Obey" in their avatars?
I try to make games.
-
PedroChurro
- Prole
- Posts: 25
- Joined: Tue Oct 09, 2012 8:22 pm
- Location: In my room
Post
by PedroChurro » Fri Oct 12, 2012 1:22 pm
I try to make games.
Users browsing this forum: No registered users and 53 guests