Open johanhelsing opened 2 years ago
Hi, awesome tutorial, looking forward to the next parts! However, in Part 3 you've forgot to add BulletReady to players in spawn_players function:
BulletReady
spawn_players
// fn spawn_players(): // Player... .insert(Player { handle: 0 }) .insert(BulletReady(true));
So just when BulletReady gets added to the codebase, both reload_bullet and fire_bullets do not run any iteration as the query is empty.
reload_bullet
fire_bullets
@swtwsk Thanks! Updated the tutorial. Glad you enoyed it!
Great tutorial! Thanks you Johan, looking forward to your next post!
Hi, awesome tutorial, looking forward to the next parts! However, in Part 3 you've forgot to add
BulletReady
to players inspawn_players
function:So just when
BulletReady
gets added to the codebase, bothreload_bullet
andfire_bullets
do not run any iteration as the query is empty.