Zelda Game written in Java (W.I.P)
mapLoad(x, y):
load file(x + y + ".txt")
for i in cols:
read and split and store in nums
for j in rows:
temp = nums[j]
# rows * i + j is a formula that can tread 1D array as 2D array
tiles[rows * i + j]
rectangle_tiles[rows * i + j] = new rectangle(j * width, i * height + shift, width, height
if not grass:
walkable[16 * i + j] = true
else:
walkable[16 * i + j] = false