Tvspelsfreak has been helping all day with this. So thanks.
First off, we got it sidescrolling. Yes, now the TileDemo sidescrolls. Ph33r!
I decided to make the map bigger in honor of the fact that it now scrolled and to have more places to explore. That's when I found that there were mysterious tiles outside of the level array. Tvspelsfreak confirmed my findings as drawing parts of the Dreamcast RAM. Being the brave adventurers we are, we dived right into the abyss to explore!
Sorry, but I had to get screenshots. :D
The platform I'm on is the map. Everything to the right of that is outside of the array. MarauderIIC described it as "We call that a memory access violation on the PC".
So then I lept off the edge of the world.
I was falling through wierd random tile clusters and formations in the DC RAM. Here's a screen:
Next I fixed bullet collision to work outside of the old demo and thanks to Tvspelsfreak started only drawing tiles onscreen.
Then I did running with the holding down of the X button. I also sprucened up the jumping. So now you can jump farther when you run
Then, it was decided that a level was needed. I decided to go with Tvspels plan of just loading it from a text file in the romdisk. He also graciously let me use some code to read in the file and store it in the level array. Man, that was over me.
So now we have a nice level in a text file formatted like JSL wanted:
Code: Select all
020 020
AAABBBBBBBBBBBBBBAAA
AAAAAAAAAABAAAAABAAA
AAAAAAAAAAAAAAAABAAA
AAAAAAAAAAAAAAAABAAA
AAAAAAAAAAAAAAAAAAAA
AAABBBBBBBBBBBBBAAAA
AAABAAAAAAAAAAAAAAAA
AAABAAAAAAAAAAAAAAAA
AAABBBBBBBBBBBBBBAAA
AAAAAAAAAAAAAAAAAAAA
AAABBBBBBBBBBBBBBAAA
AABBAAAAAAAAAAAABAAA
AAABAAAAAAAAAAAABAAA
AAABAAAAAAAAAAAABAAA
AAAAAAAAAAAAAAAAAAAA
AAABBBBBBBBBBBBBBAAA
AAAAAAABAAAABAAAAAAA
AAAAAABAAAAAABAAAAAA
AAAAABAAAAAAAABAAAAA
BBBBBBBBBBBBBBBBBBBB
I should have you know this is no ordinary level.
This is the tiled "F-word".
See for yourselves!