johanhelsing / johanhelsing.github.io

Johan Helsings github page
1 stars 0 forks source link

Extreme Bevy 3: Adding violence #13

Open johanhelsing opened 2 years ago

swtwsk commented 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:

// 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.

johanhelsing commented 2 years ago

@swtwsk Thanks! Updated the tutorial. Glad you enoyed it!

q-yang commented 1 year ago

Great tutorial! Thanks you Johan, looking forward to your next post!