-
Notifications
You must be signed in to change notification settings - Fork 0
Loading Resources
polyrain edited this page Aug 1, 2021
·
1 revision
Resources are managed by the Resource Service which loads and stores resources. To spread out the loading times, resources should be loaded in batches as needed.
Currently, the Resource Service supports Textures
, Texture Atlases
, Music
and Sounds
, but can be easily extended to support more resource types.
Resources should be loaded and unloaded into ResourceService
using the corresponding load method. The following example is for textures.
private static final String[] forestTextures = {
"images/grass_1.png",
"images/grass_2.png",
"images/grass_3.png"
};
// load
public void create() {
ServiceLocator.getResourceService().loadTextures(forestTextures);
}
// unload
public void dispose() {
ServiceLocator.getResourceService().unloadAssets(forestTextures);
}
ResourceService
is essentially a wrapper class for libgdx's AssetManager. The main reasons for having a wrapper class are to make it easier to load resources in batches, support the addition of loading screens, and to improve logging.
- Player UI
- Popup Menus
- Obstacles
- Boss Enemies
- Progress Tracker
- Checkpoint Design and Functionality
- Score System
- Lives System
- Game Background
- Multiple game-level
- Visual Improvements
- Tutorial Level
- Character Design and Animations
- Character Damage Animations
- Player Animation Functionalities
- Player and Serpent Portal Transition
- Pop-up Menus
- Obstacles
- Lives & Score User Testing
- Buffs & Debuffs
- Buffs & Debuffs redesign
- Obstacle Animation
- Background Design
- Level 2 Background Appearance
- Enemy Monster User Testing
- Level 1 Floor Terrain Testing
- Introduction Screens User Testing
- Character Movement Interviews & User Testing
- Sound user testing
- Level 2 Obstacles and enemy
- Story, Loading, Level 4 and Win Condition Sound Design User Testing
- Giant Bug and Purple Squid animation user testing
- General Gameplay and Tutorial Level User Testing
- Level 4 Terrain User Testing
- Game Outro User Testing