jblanked před 9 měsíci
rodič
revize
20a20db04e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      game/player.h

+ 2 - 2
game/player.h

@@ -12,7 +12,7 @@
 typedef struct
 typedef struct
 {
 {
     char id[32];                // Unique ID for the entity type
     char id[32];                // Unique ID for the entity type
-    int8_t index;               // Index for the specific entity instance
+    uint8_t index;              // Index for the specific entity instance
     Vector size;                // Size of the entity
     Vector size;                // Size of the entity
     Sprite *sprite_right;       // Entity sprite when looking right
     Sprite *sprite_right;       // Entity sprite when looking right
     Sprite *sprite_left;        // Entity sprite when looking left
     Sprite *sprite_left;        // Entity sprite when looking left
@@ -26,7 +26,7 @@ typedef struct
     float speed;                // Speed of the entity
     float speed;                // Speed of the entity
     float attack_timer;         // Cooldown duration between attacks
     float attack_timer;         // Cooldown duration between attacks
     float elapsed_attack_timer; // Time elapsed since the last attack
     float elapsed_attack_timer; // Time elapsed since the last attack
-    int8_t strength;            // Damage the entity deals
+    uint32_t strength;          // Damage the entity deals
     float health;               // Health of the entity
     float health;               // Health of the entity
     char message[64];           // Message to display when interacting with the entity
     char message[64];           // Message to display when interacting with the entity
     bool is_user;               // Flag to indicate if the entity is a live player or not
     bool is_user;               // Flag to indicate if the entity is a live player or not