T
TonyR
Guest
All,
trying my hand at procedural generation of some terrain for a game I'm working on. I am filling a ds_grid with the code number for solid earth and then running another routine to carve out caverns and tunnels. The routine that does the carving "overlays" a 5 x 5 cavern "array" of terrain codes onto the ds_grid. The trouble is, when I do this pseudocode:
for y loop
for x loop //painting rows first
get ds_grid (x, y)
create instance of dirt at x*tile size , y* tile size
end x loop
end y loop
The shape of the cavern is backwards.
Is 0,0 of the screen in the upper left corner?
Or is there something up with my code?
Thanks for the help.
Tony
trying my hand at procedural generation of some terrain for a game I'm working on. I am filling a ds_grid with the code number for solid earth and then running another routine to carve out caverns and tunnels. The routine that does the carving "overlays" a 5 x 5 cavern "array" of terrain codes onto the ds_grid. The trouble is, when I do this pseudocode:
for y loop
for x loop //painting rows first
get ds_grid (x, y)
create instance of dirt at x*tile size , y* tile size
end x loop
end y loop
The shape of the cavern is backwards.
Is 0,0 of the screen in the upper left corner?
Or is there something up with my code?
Thanks for the help.
Tony