Removed temporary testing setup
This commit is contained in:
parent
e8319fd6b9
commit
1c98c75cf9
2 changed files with 1 additions and 27 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue