From 6b1dcc5df51df4a2d8b724187eb1bcdb4fd9df8b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 19:25:23 -0400 Subject: Added sound when you hit the ground Also split up components.cpp into files for each class, fixed a bug concerning falling off the screen when you change maps, and converted collision data into doubles. --- src/components/map_render.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/components/map_render.h (limited to 'src/components/map_render.h') diff --git a/src/components/map_render.h b/src/components/map_render.h new file mode 100644 index 0000000..a232aa6 --- /dev/null +++ b/src/components/map_render.h @@ -0,0 +1,19 @@ +#ifndef MAP_RENDER_H +#define MAP_RENDER_H + +#include "entity.h" +#include "renderer.h" + +class Map; +class Game; + +class MapRenderComponent : public Component { + public: + MapRenderComponent(const Map& map); + void render(Game& game, Entity& entity, Texture& buffer); + + private: + Texture screen; +}; + +#endif -- cgit 1.4.1