commit 7ffcb7a5c20b3817772dc96e252ee8f02676b6ca parent 5e2bc01c808f4d2d41b4ac2dc3cd1ed78af8d438 Author: FIGBERT <figbert@figbert.com> Date: Sun, 3 Jan 2021 17:10:04 -0800 Change equals signs to assign types Diffstat:
M | godot/scripts/sevivon.gd | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/godot/scripts/sevivon.gd b/godot/scripts/sevivon.gd @@ -1,14 +1,14 @@ extends RigidBody -const ACCEL_THRESHOLD = 3 -const MIN_ANGLE = 0.0 -const MAX_ANGLE = 0.1 -const MIN_FORCE = 5 -const MAX_FORCE = 12 -var has_spun = false +const ACCEL_THRESHOLD := 3 +const MIN_ANGLE := 0.0 +const MAX_ANGLE := 0.1 +const MIN_FORCE := 5 +const MAX_FORCE := 12 +var has_spun := false func _physics_process(_delta): - var accel = Input.get_accelerometer() + var accel := Input.get_accelerometer() if accel.length() > ACCEL_THRESHOLD: spin(accel)