diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 2 | ||||
-rw-r--r-- | include/world.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index c147d88..dde3c4a 100644 --- a/include/common.h +++ b/include/common.h @@ -17,7 +17,7 @@ typedef struct { float x; float y; } vec2; #define SCREEN_HEIGHT 720 //#define FULLSCREEN -#define HLINE 2 +#define HLINE 3 #define initRand(s) srand(s) #define getRand() rand() diff --git a/include/world.h b/include/world.h index 3b76f19..c89ced7 100644 --- a/include/world.h +++ b/include/world.h @@ -13,11 +13,18 @@ private: int x_start; World *behind,*infront; public: + World *toLeft,*toRight; World(unsigned int width); ~World(void); + void addLayer(unsigned int width); void draw(vec2 *vec); void detect(vec2 *v,vec2 *vel,const float width); + + World *goWorldLeft(vec2 *loc,const float width); + World *goWorldRight(vec2 *loc,const float width); + World *goWorldBack(vec2 *loc,const float width); + World *goWorldFront(vec2 *loc,const float width); }; #endif // WORLD_H |