generated from 2ndbeam/bevy-template
refactor: Changed BpmTimer into Resource
This commit is contained in:
parent
254704135c
commit
f3b2d0313e
5 changed files with 11 additions and 30 deletions
|
|
@ -23,6 +23,7 @@ impl Plugin for GamePlugin {
|
|||
|
||||
StateMachinePlugin::default(),
|
||||
))
|
||||
.insert_resource(BpmTimer::new(120.))
|
||||
.add_systems(Startup, (
|
||||
setup,
|
||||
setup_animated_sprite,
|
||||
|
|
@ -31,7 +32,7 @@ impl Plugin for GamePlugin {
|
|||
anim::sprite::update_animated_sprites,
|
||||
combat::attack::update_attack_areas,
|
||||
player::systems::handle_input,
|
||||
timer::update_bpm_timers,
|
||||
timer::update_bpm_timer,
|
||||
))
|
||||
.register_component_as::<dyn Weapon, knife::Knife>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue