USB 3G, Phát Wifi từ 3G, Router 3G, Phát Wifi Tenda, thu Wifi Tenda, USB Wifi giá tốt

  1. // void drawBoard();
  2. // Loops through the Board array, drawing the squares as needed.

  3. // You could use a sprite to represent the chess board, but this is a little more memory effecient.

  4. var i, j;
  5. for (i=0; i<8; i+=1){
  6. for (j=0; j<8; j+=1){
  7. if ((i mod 2 ==0&&j mod 2==0)||(i mod 2 ==1&&j mod 2==1))
  8. draw_set_color(c_white);
  9. else
  10. draw_set_color(c_red);
  11. draw_rectangle(64+global.size*i, 32+global.size*j, 64+global.size*(i+1), 32+global.size*(j+1), false);
  12. }
  13. }
 
Back
Top