Skip to content

Commit

Permalink
Increase Shake
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 6, 2024
1 parent 198162d commit 84d3fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/AsteroidsView.zig
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn DrawWithCamera() Shared.View.Views {
const screenHeight: f32 = @floatFromInt(raylib.getScreenHeight());
const screenSize = raylib.Vector2.init(screenWidth, screenHeight);

const shakeAmount = screenWidth / 400;
const shakeAmount = screenWidth / 350;
const target = if (vm.player.status == .collide) raylib.Vector2.init(
vm.player.position.x - (if (Shared.Random.Get().boolean()) shakeAmount else -shakeAmount),
vm.player.position.y - (if (Shared.Random.Get().boolean()) shakeAmount else -shakeAmount),
Expand Down

0 comments on commit 84d3fe2

Please sign in to comment.