Rebound (another pong)

Show off your games, demos and other (playable) creations.
Rad3k
Citizen
Posts: 69
Joined: Mon Aug 08, 2011 12:28 pm

Re: Rebound (another pong)

Post by Rad3k »

Ghuntar, my answer to your question is yes. At least I think that way. On each frame it does the processing and all the stuff that the default love.run does, but then it checks how much time it took and therefore how much time it has until the next frame. And then it just waits this amount of time. That way, unless the processing takes more time than is reserved for a single frame, the game should run with constant framerate, requiring only as much cpu cycles as it really needs. Don't be afraid to change the default love.run, it won't break your game. The function I supplied isn't perfect though, as e.g. it doesn't check if the love.timer module is loaded before using it. But I think I can safely assume that every game that cares about framerate does use timer. I think I'm going to start a separate topic about it, so stay tuned.
Santos
Party member
Posts: 384
Joined: Sat Oct 22, 2011 7:37 am

Re: Rebound (another pong)

Post by Santos »

Now compatible with LÖVE 0.8.0!
Attachments
Rebound-0.8.0.love
(117.73 KiB) Downloaded 181 times
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests