This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:resources:resource_reloading [2021/08/28 11:53 (4 years ago)] – [Rules and Notes] iarwain | en:tutorials:resources:resource_reloading [2021/08/28 12:07 (4 years ago)] (current) – [Swapping to high-res using Code] iarwain | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== The assets ====== | ===== The assets ====== | ||
- | Download these two sprite textures and save them to a data\texture\lowres folder in your project. | + | Download these two sprite textures and save them to a '' |
- | {{ : | + | {{ : |
- | Download these two sprite textures and save them to a data\texture\highres folder in your project. | + | Download these two sprite textures and save them to a '' |
- | {{ : | + | {{ : |
- | + | ||
- | Remove the '' | + | |
===== Setting up resources ===== | ===== Setting up resources ===== | ||
Line 80: | Line 78: | ||
===== Swapping to high-res using Commands ===== | ===== Swapping to high-res using Commands ===== | ||
- | While the app is running, press the ' | + | While the app is running, press the ''~'' key (tilde) to open the Orx Console. |
Enter the following commands to switch to the high resolution assets: | Enter the following commands to switch to the high resolution assets: | ||
Line 110: | Line 108: | ||
<code c> | <code c> | ||
- | orxResource_RemoveStorage(" | + | orxResource_RemoveStorage(" |
orxConfig_PushSection(" | orxConfig_PushSection(" | ||
- | orxConfig_SetString(" | + | orxConfig_SetString(" |
orxConfig_PopSection(); | orxConfig_PopSection(); | ||