Advertisement
ShiroX

Untitled

Oct 5th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. /* IDK */
  2. if( ShowHub == true )
  3. {
  4.  
  5. instance_activate_object(objOrangeRing);
  6. if( OrangeRing == true )
  7. {
  8. draw_sprite(sprOrangeRing, 0, view_xview[0]+view_wview[0]-88, view_yview[0]+view_hview[0]-42);
  9. draw_text(view_xview[0]+view_wview[0]-64, view_yview[0]+view_hview[0]-48, string(5-instance_number(objOrangeRing))+" 5");
  10. draw_sprite(sprHUDSlash, 0, view_xview[0]+view_wview[0]-52, view_yview[0]+view_hview[0]-51);
  11. if( instance_number(objOrangeRing) == 0 )
  12. {
  13. view_object = noone;
  14. with( objPlayer ) { stgfinished = true; x_speed = 0};
  15. if( instance_exists(objResultScreen) == false )
  16. {
  17. instance_create(objPlayer.x,objPlayer.y,objResultScreen);
  18. };
  19. };
  20. };
  21.  
  22. };
  23.  
  24. /* Get Global Variable stats */
  25. Rings = global.Rings;
  26. Score = global.Score;
  27. Time = global.Time;
  28.  
  29. /* Draw HUD: */
  30. if( ShowHub == true )
  31. {
  32. {
  33. /* Ring/Time*/ draw_sprite( sprHUD, 0, floor(view_xview+0),floor(view_yview+15));
  34. /* Boost */ draw_sprite( sprBoostBar, 0, floor(view_xview+0),floor(view_yview+210));
  35.  
  36. /* Draw HUD Counters */
  37. draw_set_font( global.fntHUD );
  38. {
  39. draw_set_color( c_white );
  40. /* Lifes */ draw_number_zero( floor(view_xview+-1), floor(view_yview+-1),string( max(lives,min(0)) ) ,2)
  41. /* Rings */ draw_number_zero( floor(view_xview+-1), floor(view_yview+-1),global.Rings ,4)
  42. /* Time / Milliseconds */ draw_number_zero( floor(view_xview+-1), floor(view_yview+-1), (global.game_time div 10) mod 100, 2)
  43. /* Time / Seconds */ draw_number_zero( floor(view_xview+-1), floor(view_yview+-1), seconds, 2)
  44. /* Time / Minutes */ draw_number_zero( floor(view_xview+-1), floor(view_yview+-1), minutes, 2)
  45. };
  46. };
  47. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement