diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-26 16:44:16 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-26 16:44:16 -0400 |
commit | 5781bba3aa5764792b25a1d395cac388d001d713 (patch) | |
tree | 0ee3f3bba7a706d117320332b52b8db8ba4d673c /include | |
parent | 75b782c83954e77554d2ad30f9e45e723e91765e (diff) |
fixed jumping for real
Diffstat (limited to 'include')
-rw-r--r-- | include/entities.h | 1 | ||||
-rw-r--r-- | include/world.h | 4 |
2 files changed, 3 insertions, 2 deletions
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 |