small fixes

This commit is contained in:
betalars 2025-02-06 19:15:39 +01:00
parent 9b70ea60d3
commit fadd6efc49
3 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,7 @@ func save_to_file(current_screen: Texture):
last_saved = Time.get_unix_time_from_system()
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])

View File

@ -1,7 +1,5 @@
extends Node
func _ready() -> void:
var id_file := FileAccess.open("res://steam_appid.txt", FileAccess.READ)
var id:int = id_file.get_as_text() as int
var initialize_response: Dictionary = Steam.steamInitEx( true, 480 )
var initialize_response: Dictionary = Steam.steamInitEx()
print("Did Steam initialize?: %s " % initialize_response)

View File

@ -28,6 +28,8 @@ var has_stage: bool = false:
print("player controller %s take stage" % "did" if has_stage else "didn't")
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_acceleration: float = 5
@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 current_mouse_rotation: Vector2 = Vector2.ZERO
var mouse_sensitivity: Vector2 = Vector2(3, 3)
var noise: Noise = FastNoiseLite.new()
var crouched: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 focus_ray: RayCast3D = $Yaw/Pitch/Mount/Camera3D/RayCast3D
var zoomed:
var zoomed:bool = false:
set(zoom):
if zoomed != zoom:
if zoom:
@ -67,7 +69,7 @@ var zoomed:
zoom_tween.tween_property(camera, "fov", camera.fov*0.5, 0.5)
else:
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
signal ui_entered
var has_entered:bool = false