当前位置:网站首页 > 游戏 >

Bullet.DIR_LEFT));MySurfaceView.vcBulletBoss.add(new Bullet

来源:www.999sf.com | 编辑:999搜服 | 发布时间:2016-05-26 22:52

小编导读:

android飞机游戏

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

文章- Bullet.DIR_LEFT));MySurfaceView.vcBulletBoss.add(new Bullet,是由http://999sf.com提供,转载请注明版权出处!

上一篇:一开始观众还以为是在恶作剧

下一篇:Charm:飞五棋牌游戏怎么样【百家及时行乐】儿童足球宝贝图片〖动