diff --git a/data/gfx/new_player1_body.ani b/data/gfx/new_player1_body.ani new file mode 100644 index 0000000..9e655a4 --- /dev/null +++ b/data/gfx/new_player1_body.ani @@ -0,0 +1,9 @@ +frameWidth=16 +frameHeight=16 + +[animation] +name=default +speed=8 +loop=-1 +frames=0,1,2,3,4,5,6 +[/animation] \ No newline at end of file diff --git a/data/gfx/new_player1_body.png b/data/gfx/new_player1_body.png new file mode 100644 index 0000000..2c4246c Binary files /dev/null and b/data/gfx/new_player1_body.png differ diff --git a/data/gfx/new_player1_death.ani b/data/gfx/new_player1_death.ani new file mode 100644 index 0000000..9e655a4 --- /dev/null +++ b/data/gfx/new_player1_death.ani @@ -0,0 +1,9 @@ +frameWidth=16 +frameHeight=16 + +[animation] +name=default +speed=8 +loop=-1 +frames=0,1,2,3,4,5,6 +[/animation] \ No newline at end of file diff --git a/data/gfx/player1_death.png b/data/gfx/new_player1_death.png similarity index 100% rename from data/gfx/player1_death.png rename to data/gfx/new_player1_death.png diff --git a/data/gfx/new_player1_head.ani b/data/gfx/new_player1_head.ani new file mode 100644 index 0000000..9e655a4 --- /dev/null +++ b/data/gfx/new_player1_head.ani @@ -0,0 +1,9 @@ +frameWidth=16 +frameHeight=16 + +[animation] +name=default +speed=8 +loop=-1 +frames=0,1,2,3,4,5,6 +[/animation] \ No newline at end of file diff --git a/data/gfx/new_player1_head.png b/data/gfx/new_player1_head.png new file mode 100644 index 0000000..bcc7023 Binary files /dev/null and b/data/gfx/new_player1_head.png differ diff --git a/data/gfx/new_player1_legs.ani b/data/gfx/new_player1_legs.ani new file mode 100644 index 0000000..9e655a4 --- /dev/null +++ b/data/gfx/new_player1_legs.ani @@ -0,0 +1,9 @@ +frameWidth=16 +frameHeight=16 + +[animation] +name=default +speed=8 +loop=-1 +frames=0,1,2,3,4,5,6 +[/animation] \ No newline at end of file diff --git a/data/gfx/new_player1_legs.png b/data/gfx/new_player1_legs.png new file mode 100644 index 0000000..7d86ee3 Binary files /dev/null and b/data/gfx/new_player1_legs.png differ diff --git a/data/gfx/player1_body.png b/data/gfx/player1_body.png deleted file mode 100644 index 5774b81..0000000 Binary files a/data/gfx/player1_body.png and /dev/null differ diff --git a/data/gfx/player1_head.png b/data/gfx/player1_head.png deleted file mode 100644 index 93b6502..0000000 Binary files a/data/gfx/player1_head.png and /dev/null differ diff --git a/data/gfx/player1_legs.png b/data/gfx/player1_legs.png deleted file mode 100644 index 2421820..0000000 Binary files a/data/gfx/player1_legs.png and /dev/null differ diff --git a/source/director.cpp b/source/director.cpp index 29376a1..ed8b4a7 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -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("\\/")) + "/../"); diff --git a/source/player.cpp b/source/player.cpp index c9a0c40..73064c0 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -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