Advanced Hands-on Rust (Pragmatic Bookshelf)

Most Active This Week Top

Most Active This Month Top

dyozie
Page 9 has the reader set up hello_bevy/Cargo.toml to inherit the workspace bevy dependency with: bevy = { workspace = true } However, ...
New
erazor-de
On page 66 the text reads “The diagram at the top og the nect page” which should be “The diagram at the top of the next page”
New
NekoiNemo
On the page 57 you show pcg_rand = "0.13" as a search result for the PCG algo, but later use rand_pcg on the page 58. Which are two diffe...
New
erazor-de
The script in the green box should read #!/bin/bash cd (base path)/more_hands/my_library cargo test --no-default-features cargo test --n...
New
NekoiNemo
Setup Asset Store On page 120 we’re told to make a fn setup in asset_manager, in a format of a bevy system, this is done after being told...
New
NekoiNemo
Don’t repeat yourself (DRY). Solve a problem or implement an algorithm once, and you can reuse the result over and over again in a librar...
New
erazor-de
On pages 5 and 6 there are 3 occasions of “_world” which should be “hello_world” instead.
New
NekoiNemo
In this code, you generated a random u32 and then converted it to a usize to match the sprite index type. What you wanted was an f32 betw...
New
erazor-de
Page 96 shows code for function setup_menus. The text in the middle of the page instead refers to function setup_main_menu which does now...
New
erazor-de
On top of page 89 it is shown how systems can be called on specific states and transitions. Example: .add_systems(OnEnter, setup.run_if(...
New
erazor-de
In the middle of the text there is a “oNow” which should read “Now”.
New
erazor-de
The Cargo.toml content at the bottom of page 86 is from (path)/flappy_dragon/flappy_dragon_base/Cargo.toml and not (path)/flappy_dragon/C...
New
NekoiNemo
The where T clause in impl Plugin for a code that has been written before now silently has a +Copy added to it, in the middle of 3 other ...
New
erazor-de
Item nr. 2 on page 86 state the target directory as “code/FirstLibraryDocs/my_library/” but this would be the source, target should be “(...
New

Most Active This Year Top

A-J-V
@herbert More notes as I continue through the book, this time for chapter 5. Chapter 5 Page 86, point 2 says to copy my_library INTO ...
New
ds2k5
Hi, I did a little mod of the Code: moving_dragon so that the “dragon” can move UP/DOWN + RIGHT/LEFT (diagonal) at the same time use b...
New
williamtstanley
Workspaces are introduced as a new concept that is not part of Hands-on Rust. In the “hello_bevy” intro to workspaces section we add a de...
New

Most Active Last Three Years Top

hoozifachi
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
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
@herbert When creating my_library in the more_hands workspace in chapter 2, there’s a graphic showing the expected directory structure. ...
New
New
ds2k5
with the source Code package: hwmrust-code.zip I have some issues. cd /home/user1/rust/code/FlappyIntro/flappy_dragon_base $ cargo che...
New
paul-jewell
@herbert I think you mean spawn_image!, not spawn_sprite! in the first line on page 149?
New
wrightdylan
@herbert At the bottom of page 64 of beta 2, point (2) states: “Instead of inserting the RandomNumberGenerator resource yourself, add Ra...
New
paul-jewell
@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
@herbert Halfway down P56, you show the code defining the struct for RandomNumberGenerator, with a prefix line of #[derive(Resource)]. ...
New
paul-jewell
@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
@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
New
New
paul-jewell
@herbert Original message: At the bottom of P57, you search for the pcg random number crate. The search returns pcg_rand = "0.13.0", but...
New
New

Most Active Over Three Years Top

wrightdylan
@herbert on p118 a method was defined as: pub fn get_handle<T>(&self, index: &str, assets: &LoadedAssets) -> Optio...
New
paul-jewell
@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
@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
@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
@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
@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
@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
@herbert 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, t...
New
paul-jewell
@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
paul-jewell
@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
paul-jewell
@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
@herbert In the section “Testing XorShift”, the code is not in a code block, and probably should be?
New
paul-jewell
@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
@herbert The code for FlappyAssetsLoadingMenu/flappy_dragon_base/src/main.rs on page 132 doesn’t include the add_sound() elements requir...
New

Latest in Advanced Hands-on Rust

View all Advanced Hands-on Rust threads ❯

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!

Related Portals