Minor issue on Part 1 handle_keys
Closed this issue · 1 comments
nwymyczak commented
let key = match root.wait_for_keypress(true);
match key {
// movement keys
Key { code: Up, .. } => *player_y -= 1,
Key { code: Down, .. } => *player_y += 1,
Key { code: Left, .. } => *player_x -= 1,
Key { code: Right, .. } => *player_x += 1,
_ => {},
}
has a match in the wait_for_keypress line that seems like it could be a typo.
tomassedovic commented
Oops, fixed. Thanks!