From b6ee2b7c296abcfff1ae7f7ac4db976dc4d6fd8e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 9 Sep 2015 21:04:08 -0400 Subject: world gen --- include/World.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/World.h b/include/World.h index 4a097a6..212fe38 100644 --- a/include/World.h +++ b/include/World.h @@ -2,21 +2,19 @@ #define WORLD_H #include -#include -#define LAYER0_Y (-0.8f) -#define TEX_SIZE ( 0.2f) +#define HLINE (2.0f/ 200 ) class World { private: - struct layer_t { - unsigned int tex; - float offset; - } layer[4]; + struct line_t { + // x = 2.0 (window width) / HLINES + float start; // Where to change to dirt, going down (y) + } *line; + unsigned int lineCount; public: - World(const char *l1,const char *l2,const char *l3,const char *bg); + World(float width); void draw(void); - void update(int player_accel); }; #endif // WORLD_H -- cgit v1.2.3