-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ggez
related code seems outdated
#108
Comments
hey @kwiat1990, thanks for pointing this out, it's certainly been a while since I've bumped the ggez version! I'll take a look and see what's changed, if there are big API changes it might be tricky because the book relies on line numbers for the code snippets, so adding more lines will mess up the book text. |
@iolivia I have managed to go through the entire tutorial and adjusted the code, so it uses the latest version of listed dependencies: link to my repo. If you’re interested I could try to incorporate the changes in following days and create a PR. I think it could be a good learning experience for me as well. |
hey @kwiat1990, great job getting this to work, a PR would be very welcome! |
I gonna create one in the next few days. |
Hi Olivia! First of all thanks for your time and effort put into preparing this tutorial! I pick up Rust recently and I try to follow your explanation of the code step by step but in
Chapter 1.4 Rendering Game
the implementation of therun
method seems outdated due to changes inggez::graphics
crate, so that some methods can't be found anymore, are deprecated or their signatures have changed.It would be cool and helpful for everyones, who finds and starts to follow your tutorial if the code is up-to-date, so it works and doesn't confuses.
My
Cargo.toml
:I'm trying to fix all places, where code is outdated and compile no longer but it's a quite challenging task for someone, who has absolutely no experience in Rust and libraries used in the project 😉. Based on examples from
ggez
repository, the code could be refactored as follows:The text was updated successfully, but these errors were encountered: