I'm trying to make a map system for a platformer game, but I'm having some trouble with the header.
What I want to do is include pointers from the previous and next level to allow level switching. I have no idea how to do it though.
I've been experimenting around a bit, and currently I am doing this:
.HEADER
[000D0917]->GDB000
GDB000
GDB001
.MAPDATA
[0119000101010001]
.more map data
So I want the header to be 00 0D 09 17, then the pointer to the same GDB000 (because it's the first level), and a pointer to GDB001 (the next level).
When I try to print the header with the following code:
{S}->A
S++
{S}->B
S++
{S}->C
S++
{S}->D
S++
{S}^^r->E
S+2->S
{S}^^r->F
S+2->S
Output(0,0,"StartX")
Output(9,0,A>Dec)
Output(0,1,"StartY")
Output(9,1,B>Dec)
Output(0,2,"EndX")
Output(9,2,C>Dec)
Output(0,3,"EndY")
Output(9,3,D>Dec)
Output(0,4,"StartPtr")
Output(10,4,E>Hex)
Output(0,5,"EndPtr")
Output(10,5,F>Hex)
it outputs this:
StartX 0
StartY 13
EndX 9
EndY 23
StartPtr 1901
EndPtr 0100
Can somebody help me getting this to work?