/books/advanced-hands-on-rust
Active Threads:
Latest Threads About This Book
![wrightdylan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/wrightdylan/120/6423_2.png)
@herbert
on p118 a method was defined as:
pub fn get_handle<T>(&self, index: &str, assets: &LoadedAssets) -> Optio...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning,
On P153, the code block where the parallax background images are added has the new lines repeated again at the b...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
I think you mean spawn_image!, not spawn_sprite! in the first line on page 149?
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
s/swtiching/switching/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Bottom of the 4th paragraph: s/odler/older/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
The code for FlappyAssetsLoadingMenu/flappy_dragon_base/src/main.rs on page 132 doesn’t include the add_sound() elements requir...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
It might be worth adding use crate::AssetStore in the use changes in the second code block on P124, to avoid an error with the ...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good afternoon!
On P120-121, you modify the code in flappy_dragon_base/src/main.rs, but don’t use the normal code block to dis...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
s:/delcaration/declaration/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning,
In Chapter 5 (pages 85…86), you load the code for Flappy Dragon into a new directory. After doing this, I copied...
New
Most Active This Week
Most Active This Month
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
I think you mean spawn_image!, not spawn_sprite! in the first line on page 149?
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Bottom of the 4th paragraph: s/odler/older/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good afternoon!
On P120-121, you modify the code in flappy_dragon_base/src/main.rs, but don’t use the normal code block to dis...
New
![wrightdylan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/wrightdylan/120/6423_2.png)
@herbert
on p118 a method was defined as:
pub fn get_handle<T>(&self, index: &str, assets: &LoadedAssets) -> Optio...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
It might be worth adding use crate::AssetStore in the use changes in the second code block on P124, to avoid an error with the ...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning,
On P153, the code block where the parallax background images are added has the new lines repeated again at the b...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Hi Herbert,
I think the code on page 98 should set the state to menu_state.menu_state.clone() when key ‘M’ is pressed while in...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning,
In Chapter 5 (pages 85…86), you load the code for Flappy Dragon into a new directory. After doing this, I copied...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning Herbert!
You already know this, as the downloadable code has corrected it already:
On page 92, you define the e...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
s:/delcaration/declaration/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
The code for FlappyAssetsLoadingMenu/flappy_dragon_base/src/main.rs on page 132 doesn’t include the add_sound() elements requir...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
There is a typo on page 108 in the code for FlappyStatesMacro/pig/src/main.rs:
s:/winnner/winner/
Rgds.,
Paul
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
s/swtiching/switching/
New
Most Active This Year
![PragmaticBookshelf](https://forum.devtalk.com/user_avatar/forum.devtalk.com/PragmaticBookshelf/120/463_2.png)
Unlock Rust development with reusable libraries, traits, macros, and generic metaprogramming. Build code without the boilerplate, and lea...
New
![hoozifachi](https://forum.devtalk.com/user_avatar/forum.devtalk.com/hoozifachi/120/6110_2.png)
In ‘Moving Entities with Bevy’ bullet point 3, ‘Set the delta variable to a vector (containing x, y and z values)’ may be a little confus...
New
![hoozifachi](https://forum.devtalk.com/user_avatar/forum.devtalk.com/hoozifachi/120/6110_2.png)
Would it be cleaner to name the Plugin RandomPlugin?
Also, there were a couple more changes required than the book mentioned. They were...
New
![adamjcolvin](https://forum.devtalk.com/user_avatar/forum.devtalk.com/adamjcolvin/120/6393_2.png)
@herbert
When creating my_library in the more_hands workspace in chapter 2, there’s a graphic showing the expected directory structure. ...
New
![wrightdylan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/wrightdylan/120/6423_2.png)
At the bottom of page 64 of beta 2, point (2) states: “Instead of inserting the RandomNumberGenerator resource yourself, add Random as a ...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
As well as the changes noted on P64 for pig/src/main.rs, there are a couple more required:
In function player: mut rng: ResMu...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
At the bottom of P57, you search for the pcg random number crate. The search returns pcg_rand = "0.13.0", but in the ...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
On page 4, there is a download link for the blue dragon. This works, but you end up downloading an svg file, not a png. Also, the downloa...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
At the bottom of P95, you ask for the downloaded assets for the next stage to be added to
“your flappy_basics/assets directory...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Good morning :slight_smile:
On page 91, you start to explain the code for bevy_framework/mod.rs. Perhaps it would be good to h...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
Typo on bottom of page 39: s:/nad/and/
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
In the section “Testing XorShift”, the code is not in a code block, and probably should be?
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
There is a pop-out box on P62 which should have a shell script, but instead has the line
The code tag should not be here
Ma...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
Halfway down P56, you show the code defining the struct for RandomNumberGenerator, with a prefix line of #[derive(Resource)].
...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
The link for the download of the dice art on page 31, does not give the asset in a form which works with the program code. The ...
New
Most Active Last Three Years
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
On page 80 in the code block for random_distribution.rs, the import is shown as:
use my_library_docs::RandomNumberGenerator;
...
New
![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/120/4530_2.png)
@herbert
The first block of code on P57 is not in the standard example code block (with the download link), and I think it should be?
New
Book Info
Publisher:
Pragmatic Bookshelf
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
![](/assets/discounts/logo-pragprog-e2f9c555cf054b1bd6bf9875d757a13d9eb4abb8313ffa439feabaf3ed463947.png)
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.