feat(entities): clipping per frame, falsa perspectiva del sarcòfag i piràmide amb 20 sarcs
This commit is contained in:
1 parent
7191a08618
commit
1af5ef861f
11 files changed
+162
-25
No files matched your search
@@ -95,6 +95,11 @@ class Entity {
|
||||
// manager per tal de confinar la dependència cap a `Surface`.
|
||||
[[nodiscard]] auto getSurface() const -> const std::shared_ptr<Surface>& { return surface_; }
|
||||
|
||||
// Accessor del component d'animació. `EntityManager::renderAll` el
|
||||
// consulta per decidir quin frame del strip vertical clipa al blit.
|
||||
// Entitats sense animació retornen `nullopt` → frame 0 per defecte.
|
||||
[[nodiscard]] auto getAnimation() const -> const std::optional<AnimationComponent>& { return anim_; }
|
||||
|
||||
protected:
|
||||
std::string name_;
|
||||
TilePos tile_{};
|
||||
|
||||
Reference in new issue
Block a user