Speaking of this "random garbage" popping up, it gave me a game idea. A platformer, with essentially no purpose (except to have fun/kill time) that reads from the RAM, in which you can switch 'dimensions' (inspired by the random blocks appearing and disappearing at random in the old versions).
So... thanks for that
[↑ quoted from sandland thread]
So, I started by modifying an old version of Sandland to see what I could come up with. It's worked pretty well.
See first screenshot. Screenie removed b/c of confusions.
You can probably tell how it's supposed to work.
After that, I went to code my own.
It reads starting at a random spot in RAM. The 'other dimension' is that pointer plus 32768 (65536/2).
It doesn't work as much. See second screenshot.
Can someone look at the source and see what's wrong? It seems to not be detecting tiles that should be there, or standing on a tile that's not there...
Variables:
E: starting pointer
I,J: tile offset from E.
N,O: pixel offset from I,J
whether or not player is on top of a tile
FGKL, PQUV: used for detection of tiles
Z,Θ: X- and Y-velocities
Thanks in advance
Controls for Dimension: left/right: move left/right
2nd: jump
Alpha: swap dimension
Clear: quit
btw I'm not dropping Tio for this, I'm kind of using this to learn more about smoothscrolling tilemappers before I apply it to Tio.