User Tools

Site Tools


scratch

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scratch [2018/12/24 03:27]
sausage
scratch [2019/04/06 11:15] (current)
Line 1: Line 1:
-One of the unique features available within Orx is the ability to switch languages in game using locale. While many game engines allow a user to program ​with locale ​features ​to some degree, Orx lets you switch languages back and forth in real-time.+One of the unique features available within Orx is the ability to switch languages in game using locale ​features. While many game engines allow a user to program ​using locale to some degree, Orx lets you switch languages back and forth in real-time.
  
 An example of this could be a graphical adventure game that features characters, onscreen text, digital speech, and music. Locale switching would allow you to completely switch out all graphics, text, speech and music with a single function call without altering the game-play. An example of this could be a graphical adventure game that features characters, onscreen text, digital speech, and music. Locale switching would allow you to completely switch out all graphics, text, speech and music with a single function call without altering the game-play.
Line 86: Line 86:
  
  
-That is the basic game. Now to make the game switchable to Australia mode.+That is the basic game. 
  
-Begin by defining the two languages or locales for the game: French and Australian. 
  
-Next, define.those locales and create keys for the various assets that are required ​to switch out: graphics, sound and text+Now to make the game switchable ​to Australia mode. This is the easy part.
  
-Finally go to each config and replace ​the absolute pathsnto assets ​and text with the named keys in the locale sectionsThese locale keys are.called using the $ symbol+Begin by defining ​the two languages for the game: French ​and Australian.
  
 +[]
 +
 +Next, define those languages as sections containing your keys for the various assets or text:
 +
 +[]
 +
 +Finally go to each config and replace the absolute asset paths and text with the named keys from language sections. These keys are called using the special $ symbol: ​
 +
 +[]
 +
 +Compile and run. Now you can switch between the two languages with the Space Bar. Everything in the game switches over in an instant. Pretty impressive stuff. ​
 +
 +
 +Acknowledgements,​ permissions and thanks
 +Accordion performance of Je Te Veux by Norimichi Nagasaka. Youtube channel is at: https://​www.youtube.com/​user/​VAccordion
 +Graphics by Trevor Brennan: http://​trevorbrennan.com
 +Thanks to FullyBugged,​ Dom M ad Matt R for the voices.
  
scratch.txt ยท Last modified: 2019/04/06 11:15 (external edit)