aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/player.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-04 21:36:30 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-04 21:36:30 +0000
commit7b95e3a9eacf296f215c73e5d8ad9090a24adb20 (patch)
tree77125b5b30e08e48903e802ad4cdfddbb03074c1 /examples/shooter/player.h
parenta47649786fb94684c415b230669fbf5343cb7c5d (diff)
downloadYAGE-7b95e3a9eacf296f215c73e5d8ad9090a24adb20.tar.gz
YAGE-7b95e3a9eacf296f215c73e5d8ad9090a24adb20.zip
[Engine] Now using stb_image to laod all kinds of textures.
Diffstat (limited to 'examples/shooter/player.h')
-rw-r--r--examples/shooter/player.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/shooter/player.h b/examples/shooter/player.h
index b8042e71..8b5121c5 100644
--- a/examples/shooter/player.h
+++ b/examples/shooter/player.h
@@ -1,14 +1,9 @@
#ifndef EXAMPLE_SHOOTER_PLAYER_H
#define EXAMPLE_SHOOTER_PLAYER_H
-#include "yage/yage.h"
+#include <yage/yage.h>
-enum class Direction {
- LEFT,
- DOWN,
- RIGHT,
- UP,
-};
+#include "direction.h"
enum class Action {
IDLE,
@@ -22,10 +17,11 @@ public:
void setTexture(const yage::Texture &texture);
- void draw(yage::SpriteBatch &sp) const;
+ void draw(yage::SpriteBatch &sp);
void move(Direction direction);
void idle();
+ void look(Direction direction);
// simple getters
glm::vec4 position() const;