|
var SHAPES = { |
|
i: { |
|
spin: 'corner', |
|
startX: 5, |
|
startY: 0, |
|
pos: [ |
|
{ x: -2, y: -1 }, |
|
{ x: -1, y: -1}, |
|
{ x: 0, y: -1 }, |
|
{ x: 1, y: -1 } |
|
], |
|
image: 'media/cyanblock.png', |
|
kickType: 'i_block' |
|
}, |
|
o: { |
|
spin: 'corner', |
|
startX: 5, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: 0 }, |
|
{ x: 0, y: 0}, |
|
{ x: -1, y: -1 }, |
|
{ x: 0, y: -1 } |
|
], |
|
image: 'media/yellowblock.png', |
|
kickType: 'standard' |
|
}, |
|
j: { |
|
spin: 'block', |
|
startX: 4, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: -1 }, |
|
{ x: -1, y: 0 }, |
|
{ x: 0, y: 0 }, |
|
{ x: 1, y: 0 } |
|
], |
|
image: 'media/blueblock.png', |
|
kickType: 'standard' |
|
}, |
|
l: { |
|
spin: 'block', |
|
startX: 4, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: 0 }, |
|
{ x: 0, y: 0 }, |
|
{ x: 1, y: 0 }, |
|
{ x: 1, y: -1 } |
|
], |
|
image: 'media/orangeblock.png', |
|
kickType: 'standard' |
|
}, |
|
s: { |
|
spin: 'block', |
|
startX: 4, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: 0 }, |
|
{ x: 0, y: 0 }, |
|
{ x: 0, y: -1 }, |
|
{ x: 1, y: -1 } |
|
], |
|
image: 'media/greenblock.png', |
|
kickType: 'standard' |
|
}, |
|
z: { |
|
spin: 'block', |
|
startX: 4, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: -1 }, |
|
{ x: 0, y: -1 }, |
|
{ x: 0, y: 0 }, |
|
{ x: 1, y: 0 } |
|
], |
|
image: 'media/redblock.png', |
|
kickType: 'standard' |
|
}, |
|
t: { |
|
spin: 'block', |
|
startX: 4, |
|
startY: -1, |
|
pos: [ |
|
{ x: -1, y: 0 }, |
|
{ x: 0, y: 0 }, |
|
{ x: 0, y: -1 }, |
|
{ x: 1, y: 0 } |
|
], |
|
image: 'media/purpleblock.png', |
|
kickType: 'standard' |
|
} |
|
|
|
}; |
|
|