Assets & AssetManager documentation and security.

Ahora en las tx, el SDL_Rect index 0 es la tx completa por defecto.
Revisamos los Assets y el AssetManager.
Añadimos seguridad en los métodos y controlamos excepciones.
Reescribimos comentarios y recolocamos código.
This commit is contained in:
2022-09-25 19:07:00 +02:00
parent f2bf82e370
commit 724807e9f2
12 changed files with 295 additions and 134 deletions
-12
View File
@@ -1,17 +1,5 @@
{
"TexturePath": "resources/Sprites/Textures/Player.png",
"TextureRects": [
{
"posX": 0,
"posY": 0,
"sizeX": 16,
"sizeY": 16
},
{
"posX": 16,
"posY": 0,
"sizeX": 16,
"sizeY": 16
}
]
}
-6
View File
@@ -1,12 +1,6 @@
{
"TexturePath": "resources/Sprites/Textures/bc.png",
"TextureRects": [
{
"posX": 0,
"posY": 0,
"sizeX": 320,
"sizeY": 240
},
{
"posX": 80,
"posY": 60,