Hands-on Rust: Wrong Variable in description (page 102)

This text describing a change to BasicDungeonCrawler/dungeon_crawl_graphics/src/map.rs =>
“The screen coordinates sent to the
set function have left_x and bottom_y subtracted from them—moving them to be relative to the camera.”

The bottom_y variable should be top_y to match both the code listing in the book and the example code.

1 Like

Thanks! I’ve logged the issue and will try to clear that up in the next beta. (Sorry for delays in replying, I’ve been unwell). It looks like an update issue; I changed the order of the underlying code and didn’t catch it in the book text.

1 Like