Closed timw4mail closed 4 years ago
Attempting to just follow along, there are two missing code pieces in the book for the Gameplay section:
Incrementing the move count in the input system:
// We've just moved, so let's increase the number of moves if to_move.len() > 0 { gameplay.moves_count += 1; }
And running the new system:
// Run gameplay state system { let mut gss = GameplayStateSystem {}; gss.run_now(&self.world); }
It took me a while to track down the changes in the full code.
hey @timw4mail, thanks for flagging this! should be fixed shortly in the PR above.
Attempting to just follow along, there are two missing code pieces in the book for the Gameplay section:
Incrementing the move count in the input system:
And running the new system:
It took me a while to track down the changes in the full code.