#include "Context.h"
#include "constants.h"
-Player::Player(sf::Texture& player_txtr, sf::Texture& sack_txtr, json& params) :
+Player::Player(sf::Texture& player_txtr, sf::Texture& sack_txtr, json& params):
collected{0},
rotation{params["degrees_per_second"]},
tumble_degrees{0},
void Player::move(bool forward)
{
- position += static_cast<float>(pow(-1, forward - 1)) * max_speed * direction;
+ position += static_cast<float>(pow(-1, forward - 1)) * max_speed*direction;
sprite.setPosition(position);
sack.setPosition(position + sack_offset);
}