aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-14 11:53:26 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-14 11:53:26 -0400
commitdac8bb25d3b5a77136edb3eb227a4c1a5b1af9cf (patch)
tree3af0dc51dcef0b99dac7fbd7fce0b7ca81fc4f7c /include
parent7d974f6f4d54b3fbea99780ddf6e395b217065bc (diff)
millis stuff
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