summaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-11-12 23:01:24 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-11-12 23:01:50 +0100
commitc8663de4fbdb30534723df6c8d1331535dcdadc2 (patch)
treed2c1b9aed268c74f4ddc83f540a182950262f9d6 /src/entity.h
parent2e7d74e2622e13a6986cffd2c8d4423b840c5e59 (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.h3
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