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/static_image.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/static_image.h (limited to 'src/components/static_image.h') diff --git a/src/components/static_image.h b/src/components/static_image.h new file mode 100644 index 0000000..2dec78b --- /dev/null +++ b/src/components/static_image.h @@ -0,0 +1,18 @@ +#ifndef STATIC_IMAGE_H +#define STATIC_IMAGE_H + +#include "entity.h" +#include "renderer.h" + +class Game; + +class StaticImageComponent : public Component { + public: + StaticImageComponent(const char* filename); + void render(Game& game, Entity& entity, Texture& buffer); + + private: + Texture sprite; +}; + +#endif -- cgit 1.4.1