Sugar rush indicator

Version:

4.0

Added on:

30 Jul 2018 23:08

Tags:

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