Location:
Search - map Myhandler
Search list
Description: Android上面的编程,实现google map,http访问等功能。-android programing
Platform: |
Size: 176128 |
Author: zyy |
Hits:
Description: 这是一个简单的贪吃蛇游戏!只要把这个游戏导入eclipse就可以运行和查看源代码-import com.ruimin.snake.model.GameConstant
import com.ruimin.snake.view.GameView
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.app.Activity
import android.app.AlertDialog
import android.content.DialogInterface
import android.content.Intent
import android.content.SharedPreferences
import android.view.KeyEvent
import android.view.Menu
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams
import android.widget.LinearLayout
public class GameActivity extends Activity {
private LinearLayout layout = null
private GameView gameView = null
MyHandler handler = new MyHandler()
// 是否暂停
private boolean isPaused = false
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_game)
}
public void initData() {
GameConstant.curOrientation = GameConstant.DOWN
GameConstant.map = null
GameC
Platform: |
Size: 1806336 |
Author: 康瑞民 |
Hits: