Rediseño del sistema de Assets para simplificar las texturas y los "SpriteSheets" que ya no son una clase.
Modificada la clase Sprite para adaptarse al nuevo funcionamiento de las texturas. Extraidas las clases Drawable y Transformable de Sprite, para poder hacer más objetos con esas características. Implementada una clase Time que calcula DeltaTime y limita los FPS. Al fin limpiamos el Main y eliminamos todo este código temporal. Cambios al sistema de escenas, pero se acerca un refactor completo al sistema. Hace bastante desde el último Commit. Ahí va todo. GLHF!
@@ -2,27 +2,27 @@
|
||||
"Textures": [
|
||||
{
|
||||
"name": "bg1",
|
||||
"Path": "resources/Sprites/bc.png",
|
||||
"Path": "resources/Sprites/Data/TX_bg1.json",
|
||||
"Type": 0
|
||||
},
|
||||
{
|
||||
"name": "test1",
|
||||
"Path": "resources/Sprites/Test1.png",
|
||||
"Path": "resources/Sprites/Data/TX_Text1.json",
|
||||
"Type": 0
|
||||
},
|
||||
{
|
||||
"name": "Player",
|
||||
"Path": "resources/Sprites/Player.png",
|
||||
"Path": "resources/Sprites/Data/TX_Player.json",
|
||||
"Type": 0
|
||||
},
|
||||
{
|
||||
"name": "Button",
|
||||
"Path": "resources/Sprites/Button.png",
|
||||
"Path": "resources/Sprites/Data/TX_Button.json",
|
||||
"Type": 0
|
||||
},
|
||||
{
|
||||
"name": "Tilemap",
|
||||
"Path": "resources/Sprites/Tilemap2.png",
|
||||
"Path": "resources/Sprites/Data/TX_Tilemap.json",
|
||||
"Type": 0
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"TexturePath": "resources/Sprites/Textures/Button.png",
|
||||
"TextureRects": [
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"sizeX": 32,
|
||||
"sizeY": 32
|
||||
},
|
||||
{
|
||||
"posX": 32,
|
||||
"posY": 0,
|
||||
"sizeX": 16,
|
||||
"sizeY": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"TexturePath": "resources/Sprites/Textures/Player.png",
|
||||
"TextureRects": [
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"sizeX": 16,
|
||||
"sizeY": 16
|
||||
},
|
||||
{
|
||||
"posX": 16,
|
||||
"posY": 0,
|
||||
"sizeX": 16,
|
||||
"sizeY": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"TexturePath": "resources/Sprites/Textures/Test1.png",
|
||||
"TextureRects": [
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"sizeX": 16,
|
||||
"sizeY": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"TexturePath": "resources/Sprites/Textures/Tilemap2.png",
|
||||
"TextureRects": [
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"sizeX": 8,
|
||||
"sizeY": 8
|
||||
},
|
||||
{
|
||||
"posX": 8,
|
||||
"posY": 0,
|
||||
"sizeX": 8,
|
||||
"sizeY": 8
|
||||
},
|
||||
{
|
||||
"posX": 16,
|
||||
"posY": 0,
|
||||
"sizeX": 8,
|
||||
"sizeY": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"TexturePath": "resources/Sprites/Textures/bc.png",
|
||||
"TextureRects": [
|
||||
{
|
||||
"posX": 0,
|
||||
"posY": 0,
|
||||
"sizeX": 320,
|
||||
"sizeY": 240
|
||||
},
|
||||
{
|
||||
"posX": 80,
|
||||
"posY": 60,
|
||||
"sizeX": 160,
|
||||
"sizeY": 120
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
|
Before Width: | Height: | Size: 599 B After Width: | Height: | Size: 599 B |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
|
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |