diff options
Diffstat (limited to 'src/object.hpp')
-rw-r--r-- | src/object.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object.hpp b/src/object.hpp index 2d33885d..c915b134 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -18,6 +18,7 @@ class chunk; struct object_proto { std::shared_ptr<anim_atlas> atlas; + float speed = 1; Vector2b offset, bbox_offset; Vector2ub bbox_size = Vector2ub(tile_size_xy); uint16_t delta = 0, frame = 0; @@ -44,6 +45,7 @@ struct object class chunk* const c; const std::shared_ptr<anim_atlas> atlas; const global_coords coord; + float speed = 1; const Vector2b offset, bbox_offset; const Vector2ub bbox_size; uint16_t delta = 0, frame = 0; |