src/formas.js
/**
	Defined all shapes used in Tetris game. 
	You can add more shapes if you wish.
*/
Defined all shapes used in Tetris game.
You can add more shapes if you wish.
Defined all shapes used in Tetris game . You can add more shapes if you wish .
function ShapeL(){
	var state1 = [  [1, 0],
					[1, 0],
					[1, 1] ];
	var state2 = [  [0, 0, 1],
					[1, 1, 1] ];
	var state3 = [  [1, 1],
					[0, 1],
					[0, 1] ];
	var state4 = [  [1, 1, 1],
					[1, 0, 0] ];
	this.states = [ state1, state2, state3, state4 ];
	this.x = 4;
	this.y = -3;
	this.flag = 'L';
}
function ShapeL ( ) { var state1 = [ [ 1 , 0 ] , [ 1 , 0 ] , [ 1 , 1 ] ] ; var state2 = [ [ 0 , 0 , 1 ] , [ 1 , 1 , 1 ] ] ; var state3 = [ [ 1 , 1 ] , [ 0 , 1 ] , [ 0 , 1 ] ] ; var state4 = [ [ 1 , 1 , 1 ] , [ 1 , 0 , 0 ] ] ; this . states = [ state1 , state2 , state3 , state4 ] ; this . x = 4 ; this . y = - 3 ; this . flag = 'L' ; }
Defined all shapes used in Tetris game.
Defined all shapes used in Tetris game .