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 14:06 (4 years ago)] – [Swapping to high-res using Code] sausage | en:tutorials:resources:resource_reloading [2025/09/30 17:26 (4 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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(); | ||
| Line 125: | Line 123: | ||
| - For this to all work, the resources themselves should have the same names, just located at different places (for example: '' | - For this to all work, the resources themselves should have the same names, just located at different places (for example: '' | ||
| - '' | - '' | ||
| + | - '' | ||