Skip to content

Commit

Permalink
Always fire new balls upward-ish instead of in any direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodeath committed Jul 10, 2024
1 parent 68390dd commit b401298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clicky-clicker/game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func _button_pressed():

# Create a random "ball" for the lulz
var ball := BALL.instantiate()
var velocity := Vector2(1000, 0).rotated(randf() * 2 * PI)
var velocity := Vector2(1000, 0).rotated(randf() * -PI)
ball.linear_velocity = velocity
add_child(ball)
ball.global_position = get_global_mouse_position()
Expand Down

0 comments on commit b401298

Please sign in to comment.