Пример #1
0
 private void doRender(SpriteBatch batch) {
   if (deadByBullet) {
     TextureRegion frame = getDeadTextureRegion();
     float width = Utility.getWidth(frame, mDrawRect.height);
     float originX = width * 0.5f;
     float originY = mDrawRect.height * 0.5f;
     batch.draw(
         frame, mDrawRect.x, mDrawRect.y, originX, originY, width, mDrawRect.height, 1, 1, 180);
   } else {
     render(batch);
   }
 }