Skip to content

Commit

Permalink
Register Velocity in hello world chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
torkleyy committed Jan 3, 2019
1 parent 182171a commit 20372dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/src/02_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl<'a> System<'a> for HelloWorld {
fn main() {
let mut world = World::new();
world.register::<Position>();
world.register::<Velocity>();
world.create_entity().with(Position { x: 4.0, y: 7.0 }).build();
Expand Down

0 comments on commit 20372dc

Please sign in to comment.