Saturday, 4 July 2015

Any time yet?

People that need to be in bed are now in bed, and I can, theoretically spend some time tinkering.
Had a think about the previous post.  I am not so sure there is a problem.
The way that the flipflop is set simply looks at the 3rd item in my array - array[x,y,z], it looks at z's value.  By default once i've got this array declared all the z values become 0's.  Which is fine, but it means that when the clear button on the form is pressed, the coding behind flipflop starts looking for 1's in z.  If noone has clicked generate yet, there wont be any there and subsequently no new squares will be drawn on the picturebox.
Not so bad, maybe somewhat confusing if that's the order someone interacted with the form.
Thinking about looking into generating a map that is bigger than the picturebox so that key presses move the displayed grid around, displaying different parts of the memory-stored map.

No comments:

Post a Comment