public void render(Screen screen) { if (justDroppedTicks-- > 0 && localTeam == team) { screen.blit(areaBitmap, pos.x - radius, pos.y - radius - yOffs); } super.render(screen); }
public void render(Screen screen) { if (justDroppedTicks-- > 0 && localTeam == team) { screen.blit(areaBitmap, pos.x - radius, pos.y - radius - yOffs); } super.render(screen); Bitmap image = getSprite(); if (capacity - money < 500) { screen.colorBlit(image, pos.x - image.w / 2, pos.y - image.h / 2 - yOffs, 0x77ff7200); } if (team == localTeam && !isCarried()) { addMoneyBar(screen); } }
@Override public void render(Screen screen) { if (justDroppedTicks-- > 0 && MojamComponent.localTeam == team) { drawRadius(screen); } super.render(screen); Bitmap image = getSprite(); if (capacity - money < 500) { screen.colorBlit(image, pos.x - image.w / 2, pos.y - image.h / 2 - yOffs, 0x77ff7200); } if (team == MojamComponent.localTeam && !isCarried()) { addMoneyBar(screen); } }
@Override public void render(Screen screen) { super.render(screen); // Bitmap image = getSprite(); Font.drawCentered(screen, "" + COST[type], (int) (pos.x), (int) (pos.y + 10)); }