Page 1 of 1

Newbie's second game

Posted: Wed Jul 15, 2020 6:41 pm
by Olayinkagenius777
:awesome: :awesome: Hi, I am new to love2d and I kinda enjoy making games. I made a pong game which works on Windows and I'd love to share it. Please support. This is the link https://olayinkagenius777.itch.io/pong2d Thanks

Re: Newbie's second game

Posted: Tue Sep 29, 2020 12:04 am
by Clover
The ball is too fast, i think you forgot to use dt to normalize it's speed :nyu:
I made a video of the game https://youtu.be/72L6U8INZVs :3

Re: Newbie's second game

Posted: Tue Sep 29, 2020 1:55 am
by sphyrth
Clover wrote: Tue Sep 29, 2020 12:04 am The ball is too fast, i think you forgot to use dt to normalize it's speed :nyu:
I checked the source, and you're right:
pong.lua lines 33-35

Code: Select all

function love.update(dt)
	ball.x = ball.x + ball.vel.x
	ball.y = ball.y + ball.vel.y
	...
end