Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //CREATE:
  2. col[room_width/64,room_height/64]=0
  3. for (i=0; i<room_width/64; i+=1)
  4. {
  5.     for (j=0; j<room_height/64; j+=1)
  6.     {
  7.         col[i,j]=make_color_rgb(random(255),random(255),random(255))
  8.     }
  9. }
  10.  
  11. //DRAW:
  12. for (i=0; i<room_width/64; i+=1)
  13. {
  14.     for (j=0; j<room_height/64; j+=1)
  15.     {
  16.         draw_set_color(col[i,j])
  17.         draw_rectangle(i*64,j*64,(i*64)+64,(j*64)+64,true)
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement