Move through course, sprite and input
Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
14
LightYearsGame/include/spaceship/Spaceship.h
Normal file
14
LightYearsGame/include/spaceship/Spaceship.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include <framework/Actor.h>
|
||||
|
||||
namespace ly {
|
||||
class Spaceship : public Actor {
|
||||
public:
|
||||
Spaceship(World *owningWorld, const std::string &texturePath = "");
|
||||
virtual void Tick(float deltaTime) override;
|
||||
void SetVelocity(const sf::Vector2f newVelocity);
|
||||
sf::Vector2f GetVelocity() const { return mVelocity; }
|
||||
private:
|
||||
sf::Vector2f mVelocity;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user