Class SpriteStore
java.lang.Object
model.SpriteStore
A resource manager for sprites in the game. Its often quite important how and
where you get your game resources from. In most cases it makes sense to have
a central resource loader that goes away, gets your resources and caches them
for future use.
[singleton]
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpriteStoreget()Get the single instance of this classRetrieve a sprite from the store
-
Field Details
-
SPRITE_FOLDER
-
-
Constructor Details
-
SpriteStore
public SpriteStore()
-
-
Method Details
-
get
Get the single instance of this class- Returns:
- The single instance of this class
-
getSprite
-