diff --git a/VaporWaveWars/character.cpp b/VaporWaveWars/character.cpp index b24d7f6..4a822fd 100644 --- a/VaporWaveWars/character.cpp +++ b/VaporWaveWars/character.cpp @@ -26,16 +26,16 @@ void Character::update(float deltaTime){ timestamp += deltaTime; if (timestamp >= frameTime){ timestamp = 0; + sf::IntRect rect = sf::IntRect(indexX*width, indexY*height, width, height); + setTextureRect(rect); + //Acabar automaticament la animacio de attack if (actualState == PlayerState::attacking and indexX >= 3){ setState(PlayerState::idle); } else { indexX = (indexX+1)%4; } - - sf::IntRect rect = sf::IntRect(indexX*width, indexY*height, width, height); - setTextureRect(rect); } } diff --git a/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/exit-spreadsheet.png b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/exit-spreadsheet.png new file mode 100644 index 0000000..5320b58 Binary files /dev/null and b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/exit-spreadsheet.png differ diff --git a/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/play-spreadsheet.png b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/play-spreadsheet.png new file mode 100644 index 0000000..5d4162c Binary files /dev/null and b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/play-spreadsheet.png differ diff --git a/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/spreadsheet.png b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/spreadsheet.png new file mode 100644 index 0000000..4b4e7c1 Binary files /dev/null and b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/Resources/spreadsheet.png differ diff --git a/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/VaporWaveWars b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/VaporWaveWars index 95c5f5b..36dcfa4 100755 Binary files a/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/VaporWaveWars and b/build-VaporWaveWars-Desktop_Qt_5_7_0_GCC_64bit-Debug/VaporWaveWars differ