Fix some ranged attack animation bugs #587
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-ranged-anim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I need to keep testing this.
Fix #582
Fix #97
@@ -120,6 +120,22 @@ rectangle explode_place_rect[30];Wait… weren't the point buttons removed from the terrain screen sheet? We probably don't even need this line anymore?
@@ -120,6 +120,22 @@ rectangle explode_place_rect[30];I'm not sure what "point buttons" refers or referred to.
Recentering on the target after the missile goes off the edge seems to work... but there are some cases where recentering before the animation starts, on a tile between the origin and the destination, could make it so the whole animation fits on the screen. I think that should be the first choice behavior.
@@ -120,6 +120,22 @@ rectangle explode_place_rect[30];Literally the thing mentioned in the comment on this line. (Apparently I forgot the -ing when I wrote that comment.) They are the little blue arrows that appear when you're able to scroll the terrain view.
@@ -120,6 +120,22 @@ rectangle explode_place_rect[30];I got that it was the same thing, just not that it was the blue arrows.
@@ -120,6 +120,22 @@ rectangle explode_place_rect[30];Those arrows used to be attached to the bottom of terscreen.png. They aren't anymore.
I'm ready to recommend merging this. There is one more bug I want to fix in ranged animations but it already existed without my changes, eludes fixing after many attempts to debug, and I don't want to let the fixes in this branch go stale because I can't figure that one out at the moment.
This video shows the current master branch running combat with a variety of ranged animations at Slow game speed:
https://youtu.be/I6P-Gy1JARk
It demonstrates #97, #582, and #602 (the bug I mentioned I haven't fixed yet.)
This video shows my updated animation code running the replay of the same combat sequence:
https://youtu.be/XeL1KjWEMhY
You can see #97 and #582 fixed.
There's also behavioral changes in how the view is framed:
(Sorry the quality of the videos is terrible.)
I can't currently stage the replay for you to conveniently run it yourself because of the problem with test scenarios mentioned in #601. However, here is the Ranged Arena scenario compressed:
ranged-arena.zip