文件名称:安卓手机游戏 射击游戏java代码
文件大小:16KB
文件格式:RAR
更新时间:2020-12-30 14:11:52
安卓 手机 游戏 射击
//↓绘制主角 if (isCollision){ //↓当处于无敌时间时,让主角闪烁 if (noCollisionCount%2==0){ canvas.drawBitmap(player1, x1, y1, paint); } }else { canvas.drawBitmap(player1, x1, y1, paint); } /* if (Hp>=3){ canvas.drawBitmap(hp,0,h-hp.getHeight(),paint); canvas.drawBitmap(hp,hp.getWidth(),h-hp.getHeight(),paint); canvas.drawBitmap(hp,hp.getWidth()*2,h-hp.getHeight(),paint); }else { switch (xhp){ case 2: canvas.drawBitmap(hp,0,h-hp.getHeight(),paint); canvas.drawBitmap(hp,hp.getWidth(),h-hp.getHeight(),paint); break; case 1: canvas.drawBitmap(hp,0,h-hp.getHeight(),paint); break; } }*/ //↓绘制主角血量
【文件预览】:
java
----RJ361_GameChoice.java(2KB)
----RJ361_Enemy.java(9KB)
----RJ361_GameMenu.java(3KB)
----RJ361_Player.java(9KB)
----RJ361_MySurfaceView.java(37KB)
----RJ361_Boom.java(1KB)
----RJ361_Bullet.java(5KB)
----RJ361_GameBg.java(5KB)
----MainActivity.java(1021B)
----RJ361_Boss.java(16KB)