Advertisement
Benji23245

Untitled

Mar 11th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. //LVL UPS
  2. if (Gauge2 >= 1875 && Gauge2 < 5000)
  3. {
  4. HUD_SPRITE_LVLUPS.p.x = 810 * 1.3f * HorizontalResolution / 1680.0f;
  5. HUD_SPRITE_LVLUPS.p.y = 620 * 1.3f * VerticalResolution / 1050.0f;
  6. njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
  7. if (!LV1_obtained)
  8. {
  9. HUD_SPRITE_LVLUPS.p.x = 810 * 1.3f * HorizontalResolution / 1680.0f;
  10. HUD_SPRITE_LVLUPS.p.y = 620 * 1.3f * VerticalResolution / 1050.0f;
  11.  
  12.  
  13. if (lv1_stretch < 60)
  14. {
  15. ++lv1_stretch;
  16. SetMaterialAndSpriteColor_Float((60 - lv1_stretch) / 60.0f, 1, 1, 1);
  17. HUD_SPRITE_LVLUPS.sx = ((60 + (4.5f * lv1_stretch)) / 60.0f) * 1.3f * HorizontalResolution / 1680.0f;
  18. HUD_SPRITE_LVLUPS.sy = ((60 + (4.5f * lv1_stretch)) / 60.0f) * 1.3f * VerticalResolution / 1050.0f;
  19. njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
  20. SetMaterialAndSpriteColor_Float(1, 1, 1, 1);
  21. HUD_SPRITE_LVLUPS.sx = 810 * 1.3f * HorizontalResolution / 1680.0f;
  22. HUD_SPRITE_LVLUPS.sy = 620 * 1.3f * VerticalResolution / 1050.0f;
  23. }
  24. else if (lv1_stretch == 60)
  25. {
  26. lv1_stretch = 0;
  27. LV1_obtained = true;
  28. }
  29. SetMaterialAndSpriteColor_Float(1, 1, 1, 1);
  30.  
  31.  
  32. //njDrawSprite2D_Queue(&HUD_SPRITE_LVLUPS, 0, -1, NJD_SPRITE_ALPHA | NJD_SPRITE_COLOR, (QueuedModelFlagsB)0);
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement