Page 1 of 1

Error while folowing a tutorial

Posted: Wed Jan 11, 2023 5:40 pm
by Blorpal
I was trying to follow the flappy bird tutorial and I get the error

Error

main.lua:2: attempt to call field 'graphics' (a table value)


Traceback

main.lua:2: in function 'draw'
[C]: in function 'xpcall'

Also I dont have a .love file so idk what to do about that (it is installed tho) also if it means something im running on linux through vs.

Re: Error while folowing a tutorial

Posted: Wed Jan 11, 2023 5:44 pm
by BrotSagtMist
"love.graphics(400, 300)"
This line. What is it supposed to do? Like what is the thought behind that? (because its nonsense)

Re: Error while folowing a tutorial

Posted: Wed Jan 11, 2023 6:44 pm
by Blorpal
Oh for some reason that didn't appear in vs. restarting fixed the problem.