From 1a392a79b0491c5acc766705698191ed2ed6c2e6 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 12 Mar 2015 13:48:10 -0400 Subject: Added death to my game --- src/components.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components.h') diff --git a/src/components.h b/src/components.h index 2585d73..f182590 100644 --- a/src/components.h +++ b/src/components.h @@ -31,13 +31,13 @@ class PlayerSpriteComponent : public Component { public: void render(Game& game, Entity& entity, Texture& buffer); void receive(Game& game, Entity& entity, const Message& msg); - void tick(Game& game, Entity& entity); private: Texture sprite{"../res/Starla.png"}; int animFrame = 0; bool facingLeft = false; bool isMoving = false; + bool dying = false; }; class PlayerPhysicsComponent : public Component { @@ -54,6 +54,7 @@ class PlayerPhysicsComponent : public Component { double jump_gravity_short; int direction = 0; bool canDrop = false; + bool frozen = false; }; class MapRenderComponent : public Component { @@ -89,8 +90,7 @@ class MapCollisionComponent : public Component { std::list right_collisions; std::list up_collisions; std::list down_collisions; - const Map* leftMap; - const Map* rightMap; + const Map& map; }; #endif -- cgit 1.4.1