diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-09 19:54:58 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-09 19:54:58 -0400 |
commit | de36d85107a306828482c910731f164ab46e936d (patch) | |
tree | 2a60937e375eb6245ce73394431ac2fe326d18fd /include | |
parent | af49aebdb758f5359bf5ebbc7a1b8ae94cdb9014 (diff) |
World stuff
Diffstat (limited to 'include')
-rw-r--r-- | include/World.h | 22 |
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 |