]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/game/game.h
Nicer death handling
[dungeon_game.git] / plugins / game / game.h
index 9c6953f79a89321db80c813b78ec6fa9b55a52e5..0463086bccc022b915664e3a4efd523ff7f9da94 100644 (file)
@@ -37,7 +37,7 @@ struct entity
        const char *name;
        int x, y;
        struct color color;
-       char texture[8];
+       const char *texture;
        bool remove;
        void *meta;
        int health;
@@ -92,6 +92,7 @@ bool move(struct entity *entity, int xoff, int yoff);
 void spawn(struct entity def, int x, int y);
 void add_health(struct entity *entity, int health);
 void add_score(int s);
+bool player_dead();
 void set_color(struct color color, bool bg);
 struct color light_color(struct color color, double light);
 void register_air_function(struct generator_function func);