[UPDATE ON MY CURRENT PROGRESS INTO PROCESSING]
First, I have a nested for-loop that tracks the location of player and updates it each time the method it's contained in is called. I have that working fine with player tracking, but my issue is trying to generate terrain.
I currently have two problems:
1) I'm not sure how to create a "new" rectangle for terrain each time, because its looking like just one can be created from the way I'm approaching this task.
2) currently, the for-loop to generate terrain is inside the nested for-loop for tracking player location, meaning that when it is "read" (by the machine) the values X&Y of the matrix are constant. This nested-nested for-loop is working properly, but since X&Y are constant it keeps running that for-loop until it hits the limit for how many times it can spawn terrain.
I lost my train of thought and what I need to fix with regards to terrain, but the point of this post was to get my thoughts straight and to figure out where to go next. I may not be that clearer in my thoughts, but at least I got to try to put them together to approach the issue.
No comments:
Post a Comment