diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-28 12:53:15 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-28 12:53:15 +0100 |
commit | 9d9c4fc4565f0ef0fc81c8baeef804389f07afc2 (patch) | |
tree | f8bfb75a2b99f40de8d8cfb68136bd0b8ee68a39 /src/crepe/system/AnimatorSystem.cpp | |
parent | 1cdaa2aaeb1b6bc71876b462fcc464800ec75732 (diff) |
implemented loek feedback
Diffstat (limited to 'src/crepe/system/AnimatorSystem.cpp')
-rw-r--r-- | src/crepe/system/AnimatorSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/system/AnimatorSystem.cpp b/src/crepe/system/AnimatorSystem.cpp index e5b277f..4c40940 100644 --- a/src/crepe/system/AnimatorSystem.cpp +++ b/src/crepe/system/AnimatorSystem.cpp @@ -18,7 +18,7 @@ void AnimatorSystem::update() { if (!a.active) continue; // (10 frames per second) a.curr_row = (tick / 100) % a.row; - a.spritesheet.sprite_rect.x = (a.curr_row * a.spritesheet.sprite_rect.w) + a.curr_col; - a.spritesheet.sprite_rect = a.spritesheet.sprite_rect; + a.spritesheet.mask.x = (a.curr_row * a.spritesheet.mask.w) + a.curr_col; + a.spritesheet.mask = a.spritesheet.mask; } } |