diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-11-12 23:01:24 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-11-12 23:01:50 +0100 |
commit | c8663de4fbdb30534723df6c8d1331535dcdadc2 (patch) | |
tree | d2c1b9aed268c74f4ddc83f540a182950262f9d6 /src/entity.h | |
parent | 2e7d74e2622e13a6986cffd2c8d4423b840c5e59 (diff) |
Reorganize to make animations easily changeable:
Animations now return rectangles so the texture is independent from
them and they don't store the sprite either.
Many Animations may have the same texture.
Changing from one Animation to another is just changing a reference.
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/entity.h b/src/entity.h index 3875c22..a1681d1 100644 --- a/src/entity.h +++ b/src/entity.h @@ -6,9 +6,6 @@ class Entity{ public: - Vec2 position; - Vec2 size; - Vec2 speed; }; #endif // ENTITY_H |