User Tools

Site Tools


en:guides:beginners:text_and_game_over

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:guides:beginners:text_and_game_over [2018/06/29 05:38 (6 years ago)] – In line with init projects sausageen:guides:beginners:text_and_game_over [2023/03/28 21:13 (12 months ago)] (current) iarwain
Line 42: Line 42:
  
     orxCHAR formattedScore[6];     orxCHAR formattedScore[6];
-    orxString_Print(formattedScore, "%d", score);+    orxString_NPrint(formattedScore, sizeof(formattedScore), "%d", score);
  
     orxObject_SetTextString(scoreObject, formattedScore);     orxObject_SetTextString(scoreObject, formattedScore);
Line 86: Line 86:
 A final thing for the game will be to add a game over panel when the hero dies. For this, we'll have an object that gets created using a timeline track after a two second delay. First, a game over asset: A final thing for the game will be to add a game over panel when the hero dies. For this, we'll have an object that gets created using a timeline track after a two second delay. First, a game over asset:
  
-{{ tutorials:community:sausage:gameover.png?nolink |}}+{{ tutorials:tracks:gameover.png?nolink |}}
  
 Save this into the ''data/texture'' folder as "gameover.png". Save this into the ''data/texture'' folder as "gameover.png".
Line 157: Line 157:
 If you need quick examples, you can visit the [[en:examples:]] section and search by subject. If you need quick examples, you can visit the [[en:examples:]] section and search by subject.
  
-If you get stuck, please post it to the [[http://orx-project.org/forum|forum]], and for general chat, come and join us over in [[https://gitter.im/orx/orx|gitter]]. Hope to see you there.+If you get stuck, please post it to the [[http://orx-project.org/forum|forum]], and for general chat, come and join us over on [[https://orx-project.org/discord|Discord]]. Hope to see you there.
  
 {{section>en:guides:beginners:toc&noheader&nofooter&noeditbutton}} {{section>en:guides:beginners:toc&noheader&nofooter&noeditbutton}}
en/guides/beginners/text_and_game_over.1530275910.txt.gz · Last modified: 2018/06/29 08:38 (6 years ago) (external edit)