diff --git a/src/content/posts/the-ecs-system.md b/src/content/posts/the-ecs-system.md index 2ba1dd7..964f2d5 100644 --- a/src/content/posts/the-ecs-system.md +++ b/src/content/posts/the-ecs-system.md @@ -134,17 +134,17 @@ Here is roughly what I came up with: #include "raylib.h" namespace DREAM { - struct Health { int health = 100; }; + struct Health { int value = 100; }; - struct Attack { int attack = 1; }; + struct Attack { int value = 1; }; - struct Defense { int defense = 1; }; + struct Defense { int value = 1; }; - struct Level { uint8_t level = 1; }; + struct Level { uint8_t value = 1; }; - struct Position { Vector2 position = {0.0f, 0.0f}; }; + struct Position { Vector2 value = {0.0f, 0.0f}; }; - struct Velocity { Vector2 velocity = {0.0f, 0.0f}; }; + struct Velocity { Vector2 value = {0.0f, 0.0f}; }; } ```