-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Automap #6555
Refactor Automap #6555
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better! 🎉
Just a couple of comments and then the tests need to be updated as well!
I need help |
The tests are failing because you cannot compare an - EXPECT_EQ(AmLine(AmLineLength::DoubleTile), AmLineLength::HalfTile);
+ EXPECT_EQ(AmLine(AmLineLength::DoubleTile), static_cast<int>(AmLineLength::HalfTile)); |
19c6571
to
4985898
Compare
2a135fa
to
c8f1bbd
Compare
Can you take a screenshot of this same view but in master or release 1.5.1? I need it for reference. |
Thank you. Yeah looks like I got confused. I thought grates were supposed to be a diamond in the same way that doors are diamonds. Backwards from how it's supposed to be. Also interesting how all the diamonds drawn are offset. I chose to instead align them to the top tile so that they're correctly representing the pillars |
For use in diasurgical#6555
Grate color is too subtle to be noticed with colorDim
68d7085
to
ed781aa
Compare
Extracted for separate PR
For use in diasurgical#6555
This is a hefty one. The automap has some issues:
Foundational Changes:
AmLine()
split intoAmOffset()
andAmLine()
AmLine()
was used for both offsettingPoint
as well as providing the length for drawn lines.AmOffset()
arguments:AmWidthOffset
andAmHeightOffset
TILE_WIDTH
andTILE_HEIGHT
, and also softcodes these values. The enumerators are set to values that are friendly with the originalassert
found inAmLine()
, intended to keep everything aligned to a grid.AmLine()
argument:AmLineLength
center
offset moved from the center of the top tile to the center of the megatileChanges:
AutomapTile::Types
Lava was added to the Caves and Nest automap, which includes several new enumerators for various lava tiles.GratesGrates are now representing by 3 pixels in the path that the original line took, in order to show the player that they are not solid walls.