From dac8bb25d3b5a77136edb3eb227a4c1a5b1af9cf Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 14 Sep 2015 11:53:26 -0400 Subject: millis stuff --- include/World.h | 2 -- include/common.h | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/World.h b/include/World.h index 4d55c5d..fca108d 100644 --- a/include/World.h +++ b/include/World.h @@ -27,8 +27,6 @@ public: void draw(void); // Draws the world as well as any bound entities void detect(vec2 *v,vec2 *vel,const float width); // Object / gravity detection float getWidth(void); // Get coordinate width of world - void saveToFile(FILE *f,World *parent); // WIP: Save the world (seed) to a file? - void loadFromFile(FILE *f,World *parent); // No void addLayer(const float width); // Creates a layer of said width behind the current one void addEntity(void *e); // Adds (binds) an entity to the world }; diff --git a/include/common.h b/include/common.h index f32aad0..290e47a 100644 --- a/include/common.h +++ b/include/common.h @@ -16,10 +16,11 @@ typedef struct{float x; float y;}vec2; #define SCREEN_WIDTH 1280 #define SCREEN_HEIGHT 720 -#define SCREEN_RATIO (float)SCREEN_WIDTH/(float)SCREEN_HEIGHT +#define SCREEN_RATIO ((float)SCREEN_WIDTH/(float)SCREEN_HEIGHT) //#define FULLSCREEN #define HLINE (2.0f / (SCREEN_WIDTH / 4)) +//#define HLINE (SCREEN_RATIO) #define irand srand #define grand rand -- cgit v1.2.3