Example #1
0
 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;
 }
Example #2
0
 public void draw(SpriteBatch sb) {
   sb.drawSprite(
       mAnimation.getFrame(),
       mPhysics.getX() + mDrawOffsetX,
       mPhysics.getY() + mDrawOffsetY,
       mDrawWidth,
       mDrawHeight);
 }
Example #3
0
 public float getX() {
   return mPhysics.getX();
 }