Adding tab phone
Deploy Promiscuity Auth API / deploy (push) Successful in 47s
Deploy Promiscuity Character API / deploy (push) Successful in 44s
k8s smoke test / test (push) Successful in 8s

This commit is contained in:
2026-01-07 20:20:10 -06:00
parent 599f0972af
commit 7f4a6cbf75
3 changed files with 41 additions and 0 deletions
+8
View File
@@ -31,6 +31,9 @@ var audio_player = AudioStreamPlayer.new()
@export var camera_path: NodePath
@onready var cam: Camera3D = get_node(camera_path) if camera_path != NodePath("") else null
@export var phone_path: NodePath
@onready var phone: CanvasLayer = get_node(phone_path) if phone_path != NodePath("") else null
var phone_visible := false
func _ready() -> void:
axis_lock_angular_x = true
@@ -69,6 +72,11 @@ func _integrate_forces(state):
# Input as 2D vector
var input2v := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
if Input.is_action_just_pressed("player_phone"):
phone_visible = !phone_visible
if phone:
phone.visible = phone_visible
# Camera based movement
var forward := Vector3.FORWARD * -1.0