Guest User

Untitled

a guest
Jan 4th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. checkboard = surface_create(960, 640);
  2. surface_set_target(checkboard);
  3.  
  4. color = 0;
  5. xx = -32;
  6. repeat 30
  7. {
  8.     xx += 32;
  9.     yy = -32;
  10.     color = !color;
  11.     repeat 20
  12.     {
  13.    
  14.         yy += 32;
  15.        
  16.         color = !color;
  17.        
  18.         if color = 0
  19.             draw_set_color(c_black);
  20.         else
  21.             draw_set_color(c_white);
  22.        
  23.        
  24.         draw_rectangle(xx, yy, xx+32, yy+32, 1);
  25.     }
  26. }
Add Comment
Please, Sign In to add comment