freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

射擊類手機(jī)游戲的研究與設(shè)計(jì)畢業(yè)論文(已改無(wú)錯(cuò)字)

2022-10-08 14:48:42 本頁(yè)面
  

【正文】 的選擇界面 public static boolean choiceLoss = false。//標(biāo)記是否處于失敗的選擇界面 public static boolean isRunning = true。//是否在運(yùn)行 public static int mx, my。 private boolean bosswaringTime = true。//是否顯示 boss警告 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 30 private String allScore。//界面顯示所有的積分 private SurfaceHolder sh = null。 private Canvas c。 private Rect lifeYellow。//我的飛機(jī)生命條外部的黃色矩形 private Rect bossYellow。//boss生命條的外部的反射矩形 ......初始化各種對(duì)象 private Paint scorePaint。//定義畫(huà)筆 public static Bitmap success, loss。 private Bitmap superBulletButton。 public MyPlaneManage getMyPlaneManage() { return myPlaneManage。 } public MyBulletManage getMyBulletManage() { return myBulletManage。 } public EnemyBulletManage getEnemyBulletManage() { return enemyBulletManage。 } public BossBulletManage getBossBulletManage() { return bossBulletManage。 } public GameView1(Context context) { super(context)。 db = new DButil(context)。 lifeYellow = new Rect(0, 15, , 2)。 bossYellow = new Rect(0, 0, , 15)。//實(shí)例化矩形 textPaint = new Paint()。 numPaint = new Paint()。 lifePaint = new Paint()。 lifeYellowPaint = new Paint()。 scorePaint = new Paint()。//實(shí)例化畫(huà)筆 (40)。//設(shè)置畫(huà)筆大小 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 31 ()。 ()。//設(shè)置畫(huà)筆為空心 ()。//顏色為黃色 (50)。 (50)。 ()。 ()。 ()。 success = ((), )。//獲得圖片的 bitmap實(shí)例 loss = ((), )。 superBulletButton = ((), )。 bgm = (context, )。 bossbgm = (context, )。 bosswaring = (context, )。 successsound = (context, )。 losssound = (context, )。 (true)。//背景音樂(lè)循環(huán)播放 (true)。// (true)。 sh = ()。 (this)。 } @Override public void run() { while (isRunning) { drawView()。 try { (30)。//線程每 30毫秒運(yùn)行一次 } catch (InterruptedException e) { ()。 } } } private void drawView() { try { if (sh != null) { c = ()。//鎖住畫(huà)布 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 32 ()。 allScore = 總得分 : + 。 .set(0, 15, (int) ( * ((float) / )), )。 (c)。//繪畫(huà)游戲的背景 (, lifePaint)。 (lifeYellow, lifeYellowPaint)。 // boss登場(chǎng) if ( == bossTime) { = true。 } if ( = bossTime) { (c)。 if () { (c)。 .set(0, 0, (int) ( * ((float) / )), 15)。 (bossYellow, lifeYellowPaint)。 (, lifePaint)。 } ()。 if (bosswaringTime) { ()。 ()。 bosswaringTime = false。 } if (!()) { ()。 } } 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 33 (c)。 (c)。 (c)。 (c)。 (c)。 // 超級(jí)子彈 if () { (c)。 } (c)。 (c)。 (c)。 (c)。 (superBulletButton, 0, (() ()) / 2, null)。 ( + , 22, 50 + (() ())/ 2 numPaint)。 (allScore, 20, 70, textPaint)。 // 過(guò)關(guān) if (!) { choiceSuccess = true。 ()。 ()。 ( success, ( ()) / 2, ( ()) / 2, null)。 ( + , / 2, 585, scorePaint)。 ( + , / 2, 642, scorePaint)。 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 34 (( ) + , / 2, 700, scorePaint)。 ( * 10 + , / 2, 758, scorePaint)。 ( + , / 2, 840, textPaint)。 ( / 10)。//往數(shù)據(jù)庫(kù)中添加金錢(qián) += / 10。 isRunning = false。 } // 失敗 if (!) { choiceLoss = true。 ()。 ()。 ()。 ()。 (loss, ( ()) / 2, ( ()) / 2, null)。 isRunning = false。 } } } catch (Exception e) { ()。 } finally { if (c != null) { (c)。//把畫(huà)布解鎖運(yùn)用此種方式可增加畫(huà)面的運(yùn)行效率 } } } @Override public void surfaceCreated(SurfaceHolder holder) {//界面創(chuàng)建時(shí)運(yùn)行 myPlaneManage = new MyPlaneManage(this)。 backGroundManage = new BackGroundManage(this)。 enemyManage = new EnemyManage(this)。 bossBulletManage = new BossBulletManage(this)。 myBulletManage = new MyBulletManage(this)。 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 35 missileManage = new MissileManage(this)。 enemyBulletManage = new EnemyBulletManage(this)。 planeExplodeManage = new PlaneExplodeManage(this)。 superBulletManage = new SuperBulletManage(this)。 cloudManage = new CloudManage(this)。 bossmanage = new BossManage(this)。 bossWaringManage = new BossWaringManage(this)。 bossExplodeManage = new BossExplodeManage(this)。//實(shí)例化各種對(duì)象 new Thread(this).start()。//開(kāi)啟線程 isRunning = true。//開(kāi)啟總線程 if () { ()。//如果游戲是開(kāi)啟聲音的狀態(tài)則開(kāi)啟背景音樂(lè) } } @Override public void surfaceDestroyed(SurfaceHolder holder) { isRunning = false。//頁(yè)面銷毀時(shí) 暫停所有聲音 ()。 ()。 } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == ) { isRunning = false。//如果按了返回鍵 則暫停線程 } return (keyCode, event)。 } @Override public boolean onTouchEvent(MotionEvent event) { // 獲得坐標(biāo) if (isRunning amp。amp。 !choiceSuccess amp。amp。 !choiceLoss amp。amp。 () == 0) { mx = (int) () 。 my = (int) () 。 } // 移動(dòng)飛機(jī) 南京工程學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū)(論文) 36 if (isRunning amp。amp。 !choiceSuccess amp。amp。 !choiceLoss amp。amp。 () == 2) { ((int) (() mx), (int) (() my))。 } // 超級(jí)子彈 if (isRunning amp。amp。 !choiceSuccess amp。amp。 !choiceLoss amp。amp。 == amp。amp。 () == 1 amp。amp。 () = 0 amp。amp。 () = () amp。amp。 () = (() superBulletButton .getHeight()) / 2 amp。amp。 () = (() + superBulletButton .getHeight()) / 2) { if ( 0) {//符合條件并且剩余的子彈數(shù)大于 0 。 = true。 (, , , 0, 0, )。//在頁(yè)面中繪畫(huà)出超級(jí)子彈 } } return (event)。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1