Sugar rush indicator

Version:

4.0

Added on:

30 Jul 2018 21:08

Tags:

Description:
This snippet allows you to know how much food you still have to eat for a Sugar Rush.
bool onDrawLives(jjPLAYER@ player, jjCANVAS@ screen) {
    screen.drawSprite(590, 45, ANIM::PICKUPS, 24, jjGameTicks>>2, -1, SPRITE::NORMAL);
    screen.drawSprite(570, 45, ANIM::PICKUPS, 25, jjGameTicks>>2, -1, SPRITE::NORMAL);
    screen.drawSprite(580, 30, ANIM::PICKUPS, 81, jjGameTicks>>2, -1, SPRITE::NORMAL);
    screen.drawString(570, 15, "SUGAR RUSH", STRING::SMALL, STRING::PALSHIFT, 16);
    screen.drawString(600, 35, formatInt(player.food%100, "1") + " / 100", STRING::MEDIUM, STRING::PALSHIFT, 16);
    return false;
}