Removed temporary testing setup

This commit is contained in:
Maximilian Giller 2023-07-01 20:15:33 +02:00
parent e8319fd6b9
commit 1c98c75cf9
2 changed files with 1 additions and 27 deletions

View file

@ -32,28 +32,3 @@ void Collectable::setSprite(const std::string &spriteName)
// Set half size offset of coordinates
coordinates->move(IsometricCoordinates(0, -sizeWidth / 2.f, 0));
}
void Collectable::update()
{
GameObject::update();
// TODO: Remove this
if (InputMapper::getInstance()->getInputIdentities().empty())
{
return;
}
std::shared_ptr<InputIdentity> inputIdentity = InputMapper::getInstance()->getInputIdentity(
InputDeviceGroup::KEYBOARD_WASD);
// Rotate based on grow/shrink input
if (inputIdentity->isPerformingAction(GameAction::GROW))
{
angle += 10.f;
} else if (inputIdentity->isPerformingAction(GameAction::SHRINK))
{
angle -= 10.f;
}
setRotation(angle);
}

View file

@ -13,14 +13,13 @@ public:
void setRotation(float angle);
void update() override;
float getDepth() const;
int getId() const
{
return collectableId;
}
private:
int collectableId = 0;
static inline int collectableCount = 0;