Back to project page tetris-android.
The source code is released under:
MIT License
If you think the Android project tetris-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ultimate39.android.games.tetris; // w w w . ja v a 2s. co m import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import com.badlogic.androidgames.framework.Screen; import com.badlogic.androidgames.framework.impl.GLGame; public class Tetris extends GLGame { boolean firstTimeCreate = false; @Override public Screen getStartScreen() { return new MainMenuScreen(this); } @Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { super.onSurfaceCreated(gl, config); if (firstTimeCreate == false) { Assets.load(this); Settings.load(getFileIOIn()); firstTimeCreate = true; Settings.getHighScore(getFileIOIn()); } else { Settings.save(getFileIOIn()); Assets.reload(); Settings.getHighScore(getFileIOIn()); } } }