summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-21 01:51:44 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-21 01:51:44 +0200
commit79b8fb11967aa1637e0a0bfaeafab2d77f83ca82 (patch)
tree6b8a40641350a948c35f794a12fab3109c098b72 /player.h
parent14833f2e5bddab2ff0ac637fe1340ade94eb88ae (diff)
Added a basic player class with movements.
Diffstat (limited to 'player.h')
-rw-r--r--player.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/player.h b/player.h
new file mode 100644
index 0000000..0f00876
--- /dev/null
+++ b/player.h
@@ -0,0 +1,16 @@
+#ifndef _PLAYER_H_
+#define _PLAYER_H_
+
+#include "texture.h"
+
+class Player {
+ public:
+ float x, y, move_factor, focus_factor;
+ Texture *texture;
+
+ Player();
+ void draw();
+ void update();
+};
+
+#endif