Advertisement
Benji23245

Untitled

Mar 10th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. NJS_SPRITE HUD_SPRITE_NUMBERS_SCORE = { { 0.0f, 0.0f, 0.0f }, 1.3f * HorizontalResolution / 1680.0f, 1.3f * VerticalResolution / 1050.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
  2. NJS_SPRITE HUD_SPRITE_NUMBERS_TIMER_MINUTES = { { 0.0f, 0.0f, 0.0f }, 1.3f * HorizontalResolution / 1680.0f, 1.3f * VerticalResolution / 1050.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
  3. NJS_SPRITE HUD_SPRITE_NUMBERS_TIMER_SECONDS = { { 0.0f, 0.0f, 0.0f }, 1.3f * HorizontalResolution / 1680.0f, 1.3f * VerticalResolution / 1050.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
  4. NJS_SPRITE HUD_SPRITE_NUMBERS_TIMER_FRAMES = { { 0.0f, 0.0f, 0.0f }, 1.3f * HorizontalResolution / 1680.0f, 1.3f * VerticalResolution / 1050.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
  5. NJS_SPRITE HUD_SPRITE_NUMBERS_RINGS = { { 0.0f, 0.0f, 0.0f }, 1.3f * HorizontalResolution / 1680.0f, 1.3f * VerticalResolution / 1050.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
  6.  
  7.  
  8. then later in code :
  9.  
  10.  
  11. HUD_SPRITE_NUMBERS_RINGS.p.x = * 1.3f * HorizontalResolution / 1680.0f;
  12. HUD_SPRITE_NUMBERS_RINGS.p.y = 0;
  13. HUD_SPRITE_NUMBERS_TIMER_MINUTES.p.x = /*wrong-34*/ * 1.3f * HorizontalResolution / 1680.0f;
  14. HUD_SPRITE_NUMBERS_TIMER_MINUTES.p.y = /*wrong-65*/;
  15. HUD_SPRITE_NUMBERS_TIMER_SECONDS.p.x = (HUD_SPRITE_NUMBERS_TIMER_MINUTES.p.x + 69) * 1.3f * HorizontalResolution / 1680.0f;
  16. HUD_SPRITE_NUMBERS_TIMER_SECONDS.p.y = HUD_SPRITE_NUMBERS_TIMER_MINUTES.p.y;
  17. HUD_SPRITE_NUMBERS_TIMER_FRAMES.p.x = (HUD_SPRITE_NUMBERS_TIMER_SECONDS.p.x + 71) * 1.3f * HorizontalResolution / 1680.0f;
  18. HUD_SPRITE_NUMBERS_TIMER_FRAMES.p.y = HUD_SPRITE_NUMBERS_TIMER_MINUTES.p.y;
  19. HUD_SPRITE_NUMBERS_LIVES.p.y = 65;
  20. HUD_SPRITE_NUMBERS_SCORE.p.y = -133;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement