aboutsummaryrefslogtreecommitdiffstats
path: root/include/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/World.h')
-rw-r--r--include/World.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/World.h b/include/World.h
new file mode 100644
index 0000000..4a097a6
--- /dev/null
+++ b/include/World.h
@@ -0,0 +1,22 @@
+#ifndef WORLD_H
+#define WORLD_H
+
+#include <common.h>
+#include <cstring>
+
+#define LAYER0_Y (-0.8f)
+#define TEX_SIZE ( 0.2f)
+
+class World {
+private:
+ struct layer_t {
+ unsigned int tex;
+ float offset;
+ } layer[4];
+public:
+ World(const char *l1,const char *l2,const char *l3,const char *bg);
+ void draw(void);
+ void update(int player_accel);
+};
+
+#endif // WORLD_H