-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
Description
Chapter 1
- Fixed wording
Chapter 2
- Fixed wording
Chapter 3
- Fixed wording
Chapter 4
- "Set up objects and handle like this:" => "Set up objects and handle events:"
- "gameboard_view.draw(&gameboard_controller.gameboard, &c, g);" => "gameboard_view.draw(&gameboard_controller, &c, g);" 2 places
Chapter 5
- "if x >= 0.0 && x <= size && y >= 0.0 && y <= size {" => "if x >= 0.0 && x < size && y >= 0.0 && y < size {" This is a bug. Need to update code. Check the other chapters.
Chapter 6
- "use graphics::character::CharacterCache;" Lack Rust syntax highlighting.
- "import Transformed" => "import the trait Transformed" Add after code "The trait constraint CharacterCache<Texture = G::Texture>" makes sure that the texture type matches the type used by the graphics backend."
- After code for drawing characters, add "let ch_y = pos[1] - character.top(); has a negative sign because the y-axis in font coordinates points upwards while the y-axis in drawing coordinates points downwards."