aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/World.h2
-rw-r--r--include/common.h3
2 files changed, 2 insertions, 3 deletions
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