How to debug a game

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
mariofutire
Prole
Posts: 15
Joined: Sat Jul 26, 2014 7:28 pm

How to debug a game

Post by mariofutire »

Hi,

I am trying to find what goes wrong in my game.
But it is too fast for me to understand as normal speed.
When I reduce the overall speed things change a bit as steps are smaller, and it takes more iterations to do the same thing.

What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...

Other than random.seed() and the actual "dt"s, what else is different between 2 runs?

Seems a simple thing to add on my side, maybe we have it already.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: How to debug a game

Post by Plu »

Maybe check out something like LoveDebug? That'll probably do all the things you want :)

http://love2d.org/forums/viewtopic.php?f=5&t=76742
martov
Prole
Posts: 12
Joined: Thu May 22, 2014 10:55 pm

Re: How to debug a game

Post by martov »

maybe this will help you.
http://studio.zerobrane.com/
mariofutire
Prole
Posts: 15
Joined: Sat Jul 26, 2014 7:28 pm

Re: How to debug a game

Post by mariofutire »

mariofutire wrote:Hi,
What I guess I am really after is some way of recording the dt of a run and replay them exactly in a second run, maybe adding some stepping each update, breakpoints after N updates...
or maybe a lot simpler I just fix the dt to a fixed value.
in this case it is pc vs pc, so there is no input from the user.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest