Hands-on Rust: possible typo, repeating screen_width (page 207)

Source code in page 207. When the monster is pushed, its new position is twice SCREEN_WIDTH.

Probably one of them was supposed to be HEIGHT

1 Like