shape2.java

来自「Java 开发的俄罗斯方块游戏」· Java 代码 · 共 24 行

JAVA
24
字号



public class Shape2 extends Shape{
	public Shape2(){
		this.table = Table.mytable;
		this.setShape();
		centrePoint = shape[2];
	}
	
	private void setShape(){
		shape = new Coordinate[4];
		for(int i = 0 ; i <4 ; i++){
			shape[i]=new Coordinate();
		}
		shape[0].x = 0;shape[0].y = 1;
		shape[1].x = 1;shape[1].y = 0;
		shape[2].x = 1;shape[2].y = 1;
		shape[3].x = 1;shape[3].y = 2;

	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?