-
Notifications
You must be signed in to change notification settings - Fork 2
Loading Resources
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.
Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes
Entities and Components
Input Handling
Game Screens and Areas
Fire Extinguisher Handler Component
MainGameActions Create Docket Triggers
Main Game Order Button Display
BackstoryCutsceneDisplay Test Plan
Test Plan for MainGameOrderTicketDisplay
Test Plan for MainGameOrderBtnDisplay
Test Plan for DocketLineDisplay
Test plan for RandomComboService
Test plan for SpeedBoostUpgrade
Test plan for DancePartyUpgrade