Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(540, 540);
- glc.setDuration(3);
- glc.setFPS(30);
- glc.styles.backgroundColor ='#FAEE5A';
- // glc.setMode('single');
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- var tileWidth = 50,
- tileHeight = tileWidth / 2;
- for(var y = 0; y < 7; y++) {
- for(var x = 0; x < 7; x++) {
- var xpos = width / 2 + (x - y) * tileWidth*.55,
- ypos = height*.5 + (x + y) * tileHeight / 2;
- list.addIsobox({
- x: xpos,
- y: [ypos,ypos-100],
- size: tileWidth,
- h: [20,70],
- colorTop: '#E4FCF9',
- colorLeft: '#ACE6F6',
- colorRight: '#4B89AC',
- phase: 1-(x+y)/36
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement