Programming error!

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
Hyperion
Prole
Posts: 1
Joined: Sun Jan 06, 2019 12:23 pm

Programming error!

Post by Hyperion »

I was following this course for Game Development Beginners (https://courses.edx.org/courses/course- ... es/course/) and i was following the pong game section. In the code which I am attaching, there's an if statement in function love.keypressed(key) where i have put then after the condition but the editor expects me to add then even if it's already there. I'm quite stuck here. :(
Attachments
push.lua
This is a extension script having functions fix resolution. used here to make the game look retro
(8.52 KiB) Downloaded 79 times
main.lua
(2.38 KiB) Downloaded 80 times
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Programming error!

Post by pgimeno »

It's not in love.keypressed, it's in love.update, in line 65:

Code: Select all

	if gameState = 'play' then
should be

Code: Select all

	if gameState == 'play' then
Posting the complete error messages helps us help you better.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 84 guests