Trabajando con las animaciones del jugador

This commit is contained in:
2022-09-29 14:02:13 +02:00
parent 15b73f1d2c
commit e46a346d20
13 changed files with 38 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=8
loop=-1
frames=0,1,2,3,4,5,6
[/animation]

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=8
loop=-1
frames=0,1,2,3,4,5,6
[/animation]

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=8
loop=-1
frames=0,1,2,3,4,5,6
[/animation]

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,9 @@
frameWidth=16
frameHeight=16
[animation]
name=default
speed=8
loop=-1
frames=0,1,2,3,4,5,6
[/animation]

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 785 B

View File

@@ -9,8 +9,8 @@ Director::Director(std::string path)
{ {
// Inicializa variables // Inicializa variables
section.name = PROG_SECTION_TITLE; section.name = PROG_SECTION_GAME;
section.subsection = TITLE_SECTION_1; section.subsection = GAME_SECTION_PLAY_1P;
// Crea el objeto que controla los ficheros de recursos // Crea el objeto que controla los ficheros de recursos
asset = new Asset(path.substr(0, path.find_last_of("\\/")) + "/../"); asset = new Asset(path.substr(0, path.find_last_of("\\/")) + "/../");

View File

@@ -22,13 +22,8 @@ Player::Player(float x, int y, LTexture *textureLegs, LTexture *textureBody, LTe
Player::~Player() Player::~Player()
{ {
delete mSpriteLegs; delete mSpriteLegs;
mSpriteLegs = nullptr;
delete mSpriteBody; delete mSpriteBody;
mSpriteBody = nullptr;
delete mSpriteHead; delete mSpriteHead;
mSpriteHead = nullptr;
} }
// Iniciador // Iniciador