From 8319ddf25a8135914ee2ad816c50785d19fd7f43 Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Tue, 14 May 2024 18:03:40 -0400 Subject: [PATCH] Updated ship's speed & float --- scripts/ship.gd | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/ship.gd b/scripts/ship.gd index 363b814..8dbccdc 100644 --- a/scripts/ship.gd +++ b/scripts/ship.gd @@ -1,14 +1,12 @@ extends CharacterBody2D -# FIXME: Tweak speed and floatyness4 - signal crashed const BULLET = preload("res://scenes/bullet.tscn") -@export var accleration := 90.0 -@export var max_speed := 350.0 -@export var rotation_speed := 200.0 +@export var accleration := 100.0 +@export var max_speed := 400.0 +@export var rotation_speed := 250.0 var viewport_size : Vector2 @@ -35,7 +33,7 @@ func _physics_process(delta: float) -> void: velocity.limit_length(max_speed) ### Slowly stops movement if no accleration if accleration_direction.y == 0: - velocity = velocity.move_toward(Vector2.ZERO, 1) + velocity = velocity.move_toward(Vector2.ZERO, 0.5) ## Rotation rotate(deg_to_rad(rotation_direction * rotation_speed * delta))