LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

minesweeper game

Hi everyone,

I'm currently working on a minesweeper game in CVI for a project in college.

I'm trying to draw a 10x10 grid on a canvas with a nested loop using CanvasdrawBitmap but I don't know how to draw the next tile near the previous tile.

Any help would be appreciated.

 

Thanks in Advance!

0 Kudos
Message 1 of 2
(1,862 Views)

If you want to "draw" a grid, why don't you use the CanvasDrawLine function.

Inside your loop you need to shift the start/end points of your line according to the index. 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 2
(1,817 Views)