From: sparky4 Date: Sun, 19 Apr 2015 18:50:09 +0000 (-0500) Subject: trying to figure out the world array to player position~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=164b2dfa54902a7262200a924d6e92e29de41841;p=16.git trying to figure out the world array to player position~ modified: scroll.exe modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index 3c515aa9..afec1133 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index 4c106ede..215f968c 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -656,7 +656,8 @@ void main() { printf("player.triggy: %d\n", player.triggery); printf("player.hp: %d\n", player.hp); printf("player.q: %d\n", player.q); - printf("player.d: %d\n", player.d); + printf("player.d: %d\n", player.d); + printf("tile data value at player pos: %d\n", player.tx+(player.tx*player.ty));//bg->map->data[]); printf("palette offset: %d\n", paloffset/3); printf("Total used: %zu\n", oldfreemem-GetFreeSize()); printf("Total free: %zu\n", GetFreeSize());