Android实现俄罗斯方块(Tetris)游戏

Android实现俄罗斯方块(Tetris)游戏

Android 其它杂项

详细介绍

AndroidTetris

Android实现俄罗斯方块(Tetris)游戏,退出游戏时可自动保存当前状态

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        compile 'com.github.luweibin3118:AndroidTetris:v1.0.6'
}

Step 3. Add TetrisView in your layout xml

<com.lwb.tetrislib.TetrisView
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

image