Trabajando con las animaciones del jugador
9
data/gfx/new_player1_body.ani
Normal 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]
|
||||
BIN
data/gfx/new_player1_body.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
9
data/gfx/new_player1_death.ani
Normal 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]
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
9
data/gfx/new_player1_head.ani
Normal 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]
|
||||
BIN
data/gfx/new_player1_head.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
9
data/gfx/new_player1_legs.ani
Normal 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]
|
||||
BIN
data/gfx/new_player1_legs.png
Normal file
|
After Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 785 B |
@@ -9,8 +9,8 @@ Director::Director(std::string path)
|
||||
{
|
||||
|
||||
// Inicializa variables
|
||||
section.name = PROG_SECTION_TITLE;
|
||||
section.subsection = TITLE_SECTION_1;
|
||||
section.name = PROG_SECTION_GAME;
|
||||
section.subsection = GAME_SECTION_PLAY_1P;
|
||||
|
||||
// Crea el objeto que controla los ficheros de recursos
|
||||
asset = new Asset(path.substr(0, path.find_last_of("\\/")) + "/../");
|
||||
|
||||
@@ -22,13 +22,8 @@ Player::Player(float x, int y, LTexture *textureLegs, LTexture *textureBody, LTe
|
||||
Player::~Player()
|
||||
{
|
||||
delete mSpriteLegs;
|
||||
mSpriteLegs = nullptr;
|
||||
|
||||
delete mSpriteBody;
|
||||
mSpriteBody = nullptr;
|
||||
|
||||
delete mSpriteHead;
|
||||
mSpriteHead = nullptr;
|
||||
}
|
||||
|
||||
// Iniciador
|
||||
|
||||