small fixes
This commit is contained in:
parent
9b70ea60d3
commit
fadd6efc49
|
|
@ -67,7 +67,7 @@ func save_to_file(current_screen: Texture):
|
||||||
last_saved = Time.get_unix_time_from_system()
|
last_saved = Time.get_unix_time_from_system()
|
||||||
|
|
||||||
var thumbnail_image: Image = current_screen.get_image()
|
var thumbnail_image: Image = current_screen.get_image()
|
||||||
current_screen.resize(384, 261, Image.INTERPOLATE_LANCZOS)
|
thumbnail_image.resize(384, 261, Image.INTERPOLATE_LANCZOS) # nonexistent call in ViewportTexturew
|
||||||
|
|
||||||
thumbnail_image.save_png("%s/thumbnails/%s.png" % [State.user_saves_path, filepath])
|
thumbnail_image.save_png("%s/thumbnails/%s.png" % [State.user_saves_path, filepath])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
var id_file := FileAccess.open("res://steam_appid.txt", FileAccess.READ)
|
var initialize_response: Dictionary = Steam.steamInitEx()
|
||||||
var id:int = id_file.get_as_text() as int
|
|
||||||
var initialize_response: Dictionary = Steam.steamInitEx( true, 480 )
|
|
||||||
print("Did Steam initialize?: %s " % initialize_response)
|
print("Did Steam initialize?: %s " % initialize_response)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,9 @@ var has_stage: bool = false:
|
||||||
has_stage = false
|
has_stage = false
|
||||||
print("player controller %s take stage" % "did" if has_stage else "didn't")
|
print("player controller %s take stage" % "did" if has_stage else "didn't")
|
||||||
sleeping = has_stage
|
sleeping = has_stage
|
||||||
|
|
||||||
|
@export var mouse_sensitivity: Vector2 = Vector2(6, 5)
|
||||||
|
|
||||||
@export_range (0, 10) var max_speed: float = 3
|
@export_range (0, 10) var max_speed: float = 3
|
||||||
@export_range (0, 10) var max_acceleration: float = 5
|
@export_range (0, 10) var max_acceleration: float = 5
|
||||||
@export_range (0, 20) var damp: float = 10
|
@export_range (0, 20) var damp: float = 10
|
||||||
|
|
@ -48,7 +50,7 @@ var rot_noise_spot: Vector3 = Vector3.ZERO
|
||||||
|
|
||||||
var rotation_speed: Vector2 = Vector2.ZERO
|
var rotation_speed: Vector2 = Vector2.ZERO
|
||||||
var current_mouse_rotation: Vector2 = Vector2.ZERO
|
var current_mouse_rotation: Vector2 = Vector2.ZERO
|
||||||
var mouse_sensitivity: Vector2 = Vector2(3, 3)
|
|
||||||
var noise: Noise = FastNoiseLite.new()
|
var noise: Noise = FastNoiseLite.new()
|
||||||
var crouched:bool = false
|
var crouched:bool = false
|
||||||
var on_crouch_cooldown:bool = false
|
var on_crouch_cooldown:bool = false
|
||||||
|
|
@ -59,7 +61,7 @@ var on_crouch_cooldown:bool = false
|
||||||
@onready var camera:Camera3D = $Yaw/Pitch/Mount/Camera3D
|
@onready var camera:Camera3D = $Yaw/Pitch/Mount/Camera3D
|
||||||
@onready var focus_ray: RayCast3D = $Yaw/Pitch/Mount/Camera3D/RayCast3D
|
@onready var focus_ray: RayCast3D = $Yaw/Pitch/Mount/Camera3D/RayCast3D
|
||||||
|
|
||||||
var zoomed:
|
var zoomed:bool = false:
|
||||||
set(zoom):
|
set(zoom):
|
||||||
if zoomed != zoom:
|
if zoomed != zoom:
|
||||||
if zoom:
|
if zoom:
|
||||||
|
|
@ -67,7 +69,7 @@ var zoomed:
|
||||||
zoom_tween.tween_property(camera, "fov", camera.fov*0.5, 0.5)
|
zoom_tween.tween_property(camera, "fov", camera.fov*0.5, 0.5)
|
||||||
else:
|
else:
|
||||||
var zoom_tween = create_tween()
|
var zoom_tween = create_tween()
|
||||||
zoom_tween.tween_property(camera, "fov", camera.fov*2, 0.5)
|
zoom_tween.tween_property(camera, "fov", camera.fov*2.0, 0.5)
|
||||||
zoomed = zoom
|
zoomed = zoom
|
||||||
signal ui_entered
|
signal ui_entered
|
||||||
var has_entered:bool = false
|
var has_entered:bool = false
|
||||||
|
|
@ -75,7 +77,7 @@ signal ui_exited
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
_handle_jitter(0)
|
_handle_jitter(0)
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue