Bullet.DIR_LEFT));MySurfaceView.vcBulletBoss.add(new Bullet
小编导读:
MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_UP)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_DOWN)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_LEFT)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_RIGHT)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_UP_LEFT)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_UP_RIGHT)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_DOWN_LEFT)); MySurfaceView.vcBulletBoss.add(new Bullet(MySurfaceView.bmpBossBullet, x+40, y+10, Bullet.BULLET_BOSS, Bullet.DIR_DOWN_RIGHT)); public boolean isCollsionWith(Bullet bullet) { int x2 = bullet.bulletX; int y2 = bullet.bulletY; int w2 = bullet.bmpBullet.getWidth(); int h2 = bullet.bmpBullet.getHeight(); if (x >= x2 && x >= x2 + w2) { return false; } else if (x = y2 + h2) { return false; } else if (y
热门资讯
05-26
· 龙妈自曝跟父母看《权力的游戏05-26
·或许换掉Windows XP的最佳时机已05-26
·电视剧权力的游戏4剧情介绍 首部05-26
·如何在众多对手之中生存下来05-26
·本作将提供实体卡牌与虚拟卡牌两05-26
·这也使其成为首款支持该功能的Xb05-26
·且每年在线访问量高达数十亿05-26
·但是后面发生了可怕的事情
传奇特荐
05-04
·《期间》评最具影响力50款科技产05-05
·虐心游戏《Choppa》评测:虐的就05-06
·慈文传媒第一季度矫正通告:上半05-19
·女主播直播斗鸡游戏 衣着暴露动05-19
·眼下就是花式告白的最佳时机05-19
·《白发魔女传》删档测试今日开启05-19
·整体音乐让游戏带入感非常不错05-20
·《诛仙手游》中还有凄凉肃杀的空05-21
·pass:深圳市巨彩科技05-21
·pass:棋牌游戏银商