📦 Resources
Overview of the
Resourcesmodule in JarEngine.
🔹 Overview
Resources provides the classes and utilities related to game resource storage and management.
It includes:
- Texture resources
- Font resources
- Music resources
- Sound resources
🔹 Contents
| Class | Description |
|---|---|
•>JETexture<•📎 |
Texture resource storage |
•>JEFont<•📎 |
Font resource storage |
•>JEMusic<•📎 |
Music resource storage |
•>JESound<•📎 |
Sound resource storage |
🔹 Usage
from jarengine import Resources
texture = Resources.JETexture(
"player",
"player.png"
)
font = Resources.JEFont(
"default",
"Nasalization.otf",
20
)
The module provides resource objects that can be registered inside the game resource manager.
🔹 Notes
Useful information:
- Resource classes only store and describe resources.
- Resource loading and management is handled by the game resource system.
- Resources must be registered before being used by the game.