I want to make BlockDude for the contest. So far I've managed to decode the original level data! It wasn't so bad except that I don't really know asm, and the data is Huffman encoded, so I had to kind of guess my way around. For example, I thought "cp 128" would set z if a == 128, so that made my code a little confused for a while
Here's a screenshot of the data decompressed:
To make sure I did it right, I commented the code with the assembly, so it looks kinda funny:
Code:
Obviously this isn't calculator code right now, but I just need to convert this to a form that makes sense to xLib. Also expect some sort of level editor!
Expect some screenshots of sprites etc. tonight!
Here's a screenshot of the data decompressed:
To make sure I did it right, I commented the code with the assembly, so it looks kinda funny:
Code:
private void nec(ref int curLoc, ref byte mask) {
// ld a,(mask)
// rrca
// ld (mask),a
mask = (byte)(mask >> 1);
// cp 128
// ret nz
if (mask != 0) { // Because it's a rotate, if it's 0 it's 128. If it's not 128 (0) get out of here
return;
}
// If it is 128 (0), then increment
// inc hl
// ld (curloc),hl
// ret
mask = 128;
curLoc++;
}
Obviously this isn't calculator code right now, but I just need to convert this to a form that makes sense to xLib. Also expect some sort of level editor!
Expect some screenshots of sprites etc. tonight!