"dt" is being used already as part of the calculation of the interpolated song timer. This song timer is then used in the calculation of the notes vertical position, so i assume dt is already applied.Davidobot wrote:I would recommend using dt to solve the stutter problem. Also, maybe round your values to whole numbers before drawing, using math.int(coord).
This interpolated song timer is used exactly to make sure the notes don't stutter whilst sliding down the screen. A nicer explanation about this can be found here: https://www.reddit.com/r/gamedev/commen ... the_music/
The lua Love2d 0.10.1 uses is lua 5.1, so i guess it doesn't have math.int().NightKawata wrote:math.int is a Lua 5.3 function, I believe? I don't see any points to Lua 5.3 in the topic, so I don't think he'd be able to do that? Unless you're referring to an external library or the sort.Davidobot wrote:I would recommend using dt to solve the stutter problem. Also, maybe round your values to whole numbers before drawing, using math.int(coord).
Exactly. I'll later upload a version of the game with debugging enabled and the code i'm using to update the notes Y position in order to try to clarify things as much as i can. I don't think i'll be able to simplify the game without it having at least 6 lua files along with it.Nixola wrote:math.floor will do I guess
@edit
Regarding working directly with zip files, you guys mean it's better to:
1) Scan a folder for osz files
2) Mount these files to a songs folder in the save directory
3) Delete the extracted/installed .osz file
4) Load songs from the savefolder?
@edit2
Figured out what i was doing in the update note position logic. Thanks for the suggestions! I had to use the song time DT.