So in Dragon Warrior the monster type encounter is a grid of 16x16 tiles per zone, and there are 8x8 zones in the world(128x128).
I've found an error in my setup that causes the zones to be skewed by +1 each zone. so zone 0,0 is perfect but zone 1,0 is off by 1 tile in x, and zone 0,1 is off 1 tile in y. This pattern continues lineally, so zone 5,0 is off +5 in x, and so forth. but yet there is no gap in the zones, so there is no 0 value tile between zone 1,0 and zone 2,0.
Here is the code to generate the encounter zones,
DIM World
(127,127) AS WorldData
X1%% = 16 * j%%
Y1%% = 16 * i%%
Z%%
= INT(RND *19)' dummy data for this thread READ Z%% 'encouter territory World(X1%% + X%%, Y1%% + Y%%).Territory = Z%%
Can anyone see right off why its growing by an extra +1 each time?
I'm counting 0 to 15, so I do want to start on 16 for the next set right? 16+0(16) to 16+15(31) then 32+0(32) to 32+15(47)
where is that extra tile coming from?
I've attached the a visualization of this setup to show what I'm trying to reproduce.
https://gamefaqs.gamespot.com/nes/563408-dragon-warrior/map/5948?raw=1