You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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.
"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."
The text was updated successfully, but these errors were encountered:
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
The text was updated successfully, but these errors were encountered: