Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LVL UPS
- if (Gauge2 >= 1875 && Gauge2 < 5000)
- {
- HUD_SPRITE_LVLUPS.p.x = 810 * 1.3f * HorizontalResolution / 1680.0f;
- HUD_SPRITE_LVLUPS.p.y = 620 * 1.3f * VerticalResolution / 1050.0f;
- njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
- if (!LV1_obtained)
- {
- HUD_SPRITE_LVLUPS.p.x = 810 * 1.3f * HorizontalResolution / 1680.0f;
- HUD_SPRITE_LVLUPS.p.y = 620 * 1.3f * VerticalResolution / 1050.0f;
- if (lv1_stretch < 60)
- {
- ++lv1_stretch;
- SetMaterialAndSpriteColor_Float((60 - lv1_stretch) / 60.0f, 1, 1, 1);
- HUD_SPRITE_LVLUPS.sx = ((60 + (4.5f * lv1_stretch)) / 60.0f) * 1.3f * HorizontalResolution / 1680.0f;
- HUD_SPRITE_LVLUPS.sy = ((60 + (4.5f * lv1_stretch)) / 60.0f) * 1.3f * VerticalResolution / 1050.0f;
- njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
- SetMaterialAndSpriteColor_Float(1, 1, 1, 1);
- HUD_SPRITE_LVLUPS.sx = 810 * 1.3f * HorizontalResolution / 1680.0f;
- HUD_SPRITE_LVLUPS.sy = 620 * 1.3f * VerticalResolution / 1050.0f;
- }
- else if (lv1_stretch == 60)
- {
- lv1_stretch = 0;
- LV1_obtained = true;
- }
- SetMaterialAndSpriteColor_Float(1, 1, 1, 1);
- //njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement