Skip to content

Commit

Permalink
shorten crash animation
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanking90 committed Sep 12, 2024
1 parent 6e804f1 commit 1007602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/car.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn spawn_car(
speed: Vec2 { x: 0.0, y: YSPEED },
score: 0.0,
state: CarState::Moving,
frame_timer: Timer::new(Duration::from_secs_f32(3.0), TimerMode::Repeating),
frame_timer: Timer::new(Duration::from_secs_f32(1.0), TimerMode::Repeating),
sprite_index: 0,
texture_list,
position: Vec3 {
Expand Down

0 comments on commit 1007602

Please sign in to comment.