From de36d85107a306828482c910731f164ab46e936d Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 9 Sep 2015 19:54:58 -0400 Subject: World stuff --- include/World.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/World.h (limited to 'include') 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 +#include + +#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 -- cgit v1.2.3