Computer Science Canada drawing stuff |
Author: | Prince [ Tue May 27, 2003 10:12 pm ] |
Post subject: | drawing stuff |
anybody hav an idea how i can draw bricks onto a screen (50 of em 10x5) and then take them away wen theyre hit |
Author: | Prince [ Tue May 27, 2003 10:15 pm ] | ||
Post subject: | |||
i tried a for loop
but wen the whole prog loops back around they get erased |
Author: | Asok [ Tue May 27, 2003 10:29 pm ] |
Post subject: | |
if u're gonna keep it like that you'll need an array of booleans, one for each block. So if the boolean = true then it draws it, if it's false then it skips it or draws a white box or whatever. |
Author: | Prince [ Tue May 27, 2003 10:34 pm ] |
Post subject: | |
is ther a way i could do it without the array of booleans |
Author: | Asok [ Tue May 27, 2003 10:36 pm ] |
Post subject: | |
yea, have all the bricks drawn and simply draw over it with a white Draw.FillBox the have an integer keeping track of how many blocks you have left. |
: |