From f28fda996331de5dac8fc2f20ea0898527239fe5 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 7 Oct 2015 08:39:53 -0400 Subject: world improvement --- include/common.h | 2 +- include/world.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index b283ec8..03385cd 100644 --- a/include/common.h +++ b/include/common.h @@ -30,7 +30,7 @@ enum GENDER{ #include #define SCREEN_WIDTH 1280 -#define SCREEN_HEIGHT 720 +#define SCREEN_HEIGHT 740 //#define FULLSCREEN #define HLINE 3 //base unit of the world diff --git a/include/world.h b/include/world.h index 7095c3b..1f8b7e1 100644 --- a/include/world.h +++ b/include/world.h @@ -24,7 +24,8 @@ protected: * */ struct line_t { - float y,gh; + bool gs; + float y,gh[2]; unsigned char color; } __attribute__ ((packed)) *line; unsigned int lineCount; // Size of the array 'line' (aka the width of the world) @@ -45,7 +46,7 @@ public: void addLayer(unsigned int width); // Generates a new world and makes 'behind' point to it. If 'behind' // already points to a world, the new world will be set to be behind 'behind'. - virtual void draw(vec2 *vec); // Draws the world around the coordinates 'vec' + virtual void draw(Player *p); // Draws the world around the coordinates 'vec' void detect(Player *p); // Insures objects/entities stored in an Entity class stay outside of the @@ -78,7 +79,7 @@ public: ~IndoorWorld(void); void generate(unsigned int width); // Generates a flat world of width 'width' - void draw(vec2 *vec); // Draws the world (ignores layers) + void draw(Player *p); // Draws the world (ignores layers) }; #endif // WORLD_H -- cgit v1.2.3