Advertisement
xeromino

mccc03

Mar 23rd, 2016
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     glc.size(540, 540);
  4.     glc.setDuration(3);
  5.     glc.setFPS(30);
  6.     glc.styles.backgroundColor ='#FAEE5A';
  7. //     glc.setMode('single');
  8. //     glc.setEasing(false);
  9.     var list = glc.renderList,
  10.         width = glc.w,
  11.         height = glc.h,
  12.         color = glc.color;
  13.  
  14.     // your code goes here:
  15.  
  16.     var tileWidth = 50,
  17.         tileHeight = tileWidth / 2;
  18.    
  19.     for(var y = 0; y < 7; y++) {
  20.         for(var x = 0; x < 7; x++) {
  21.             var xpos = width / 2 + (x - y) * tileWidth*.55,
  22.                 ypos = height*.5 + (x + y) * tileHeight / 2;
  23.             list.addIsobox({
  24.                 x: xpos,
  25.                 y: [ypos,ypos-100],
  26.                 size: tileWidth,
  27.                 h: [20,70],
  28.                 colorTop: '#E4FCF9',        
  29.                 colorLeft: '#ACE6F6',
  30.                 colorRight: '#4B89AC',
  31.                 phase: 1-(x+y)/36
  32.             });
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement