jblanked 9 месяцев назад
Родитель
Сommit
20a20db04e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      game/player.h

+ 2 - 2
game/player.h

@@ -12,7 +12,7 @@
 typedef struct
 {
     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
     Sprite *sprite_right;       // Entity sprite when looking right
     Sprite *sprite_left;        // Entity sprite when looking left
@@ -26,7 +26,7 @@ typedef struct
     float speed;                // Speed of the entity
     float attack_timer;         // Cooldown duration between attacks
     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
     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