示例#1
0
文件: Sprite.java 项目: amplify91/RAW
 public Vec2
     getProjectileSpawnPoint() { // TODO move to an interface like IProjectileParent or something
   mProjectileSpawnPoint.set(
       mPhysics.getX() + 3,
       mPhysics.getY()); // TODO change arguments to mPhysics.getProjectileSpawn
   return mProjectileSpawnPoint;
 }
示例#2
0
文件: Sprite.java 项目: amplify91/RAW
 public void draw(SpriteBatch sb) {
   sb.drawSprite(
       mAnimation.getFrame(),
       mPhysics.getX() + mDrawOffsetX,
       mPhysics.getY() + mDrawOffsetY,
       mDrawWidth,
       mDrawHeight);
 }
示例#3
0
文件: Sprite.java 项目: amplify91/RAW
 public float getX() {
   return mPhysics.getX();
 }