diff options
| author | Raymond Hogenson <rhogenson@posteo.net> | 2018-08-18 15:17:27 -0400 |
|---|---|---|
| committer | Raymond Hogenson <rhogenson@posteo.net> | 2018-08-18 15:17:27 -0400 |
| commit | 4d789507e6dbfeee72a241ee460a7a17e66f4970 (patch) | |
| tree | e87a94f5d570b8153bf221d7a8f2b7f56678c4ba /src/main.rs | |
| parent | e8b4d6a42ef2f45e9ccc5d1b068bb176cedc8695 (diff) | |
| download | stallman-shooter-4d789507e6dbfeee72a241ee460a7a17e66f4970.tar.zst | |
Add the ability to move more quickly
I also upped the fire rate
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 0e40fdd..603aa5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn frame(canvas: &mut sdl2::render::WindowCanvas, state: &mut state::State, even } state.player.act(events); if count % state.player.fire_rate as u64 == 0 { - state.player_bullets.push(state::PBullet::new(state.player.x, 0., state.player.y, -1.)); + state.player_bullets.push(state::PBullet::new(state.player.x, 0., state.player.y, -3.)); } if state.bullets.iter().any(|bullet| state.player.overlaps(bullet)) || new_bullets.iter().any(|bullet| state.player.overlaps(bullet)) { return Result::Loss; |
