Error while folowing a tutorial

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.
Post Reply
Blorpal
Prole
Posts: 3
Joined: Tue Jan 10, 2023 4:52 pm

Error while folowing a tutorial

Post 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.
Attachments
main.lua
(256 Bytes) Downloaded 48 times
User avatar
BrotSagtMist
Party member
Posts: 657
Joined: Fri Aug 06, 2021 10:30 pm

Re: Error while folowing a tutorial

Post by BrotSagtMist »

"love.graphics(400, 300)"
This line. What is it supposed to do? Like what is the thought behind that? (because its nonsense)
obey
Blorpal
Prole
Posts: 3
Joined: Tue Jan 10, 2023 4:52 pm

Re: Error while folowing a tutorial

Post by Blorpal »

Oh for some reason that didn't appear in vs. restarting fixed the problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest