Hi there, hopefully I chose the correct category.
So, I want to implement some machine learning and I chose Tetris World for the GBA as platform to do so.
By now I got several ram addresses that contain the x and y of the current blocks vertices.
Unfortunately the values "flicker" a lot. For example x is 32(goes in steps of 8 when moving left or right) and y is 10(decrements whenever the block goes down) and in the next tick they suddenly are at seemingly arbitrary values and then go back to normal.
If I go for 4Byte unsigned they jump to several millions, if I go for signed, then obviously also to negative millions and even if i set the size to 2 or 1 Byte, the values jump around a lot and don't stay at the values that would make sense.
Has anybody got an idea, why that happens and how I could fix that? It would suck if I had to make a sanity check for each value every time.
Edit: I made a gif, so you can see what i mean.
here