From 5781bba3aa5764792b25a1d395cac388d001d713 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 26 Sep 2015 16:44:16 -0400 Subject: fixed jumping for real --- include/entities.h | 1 + include/world.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/entities.h b/include/entities.h index 2687c24..6e0e2c3 100644 --- a/include/entities.h +++ b/include/entities.h @@ -14,6 +14,7 @@ public: vec2 vel; bool right,left, canMove; bool alive; + bool ground; unsigned int texture[]; diff --git a/include/world.h b/include/world.h index 444b2c4..e826ba2 100644 --- a/include/world.h +++ b/include/world.h @@ -68,8 +68,8 @@ public: IndoorWorld(void); ~IndoorWorld(void); - void generate(unsigned int width); - void draw(vec2 *vec); + void generate(unsigned int width); // Generates a flat world of width 'width' + void draw(vec2 *vec); // Draws the world (ignores layers) }; #endif // WORLD_H -- cgit v1.2.3