From c8663de4fbdb30534723df6c8d1331535dcdadc2 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 12 Nov 2022 23:01:24 +0100 Subject: 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. --- src/entity.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/entity.h') 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 -- cgit v1.2.3