1.0
03 Mar 2015 23:16
const array<uint8> gunProfilePics = {0, 83+20+33, 25, 29, 34, 49, 57, 59, 62, 68};
const array<uint8> gunPoweredProfilePics = {0, 18, 24, 28, 33, 48, 56, 59, 61, 67};
bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ screen) {
uint8 an;
if (play.powerup[WEAPON::CURRENT]) an = gunPoweredProfilePics[play.currWeapon];
else an = gunProfilePics[play.currWeapon];
if (play.currWeapon == WEAPON::BLASTER && play.charCurr == CHAR::SPAZ) ++an;
for (int8 i = 0; i < play.ammo[WEAPON::CURRENT]; ++i )
screen.drawSprite(jjSubscreenWidth - 20 - i*(jjSubscreenWidth/128), jjSubscreenHeight - 20, 0, an, (jjRenderFrame+i)/5, 0, (i+1 == play.ammo[WEAPON::CURRENT]) ? SPRITE::NORMAL : SPRITE::TRANSLUCENT);
return true;
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.