promiscuity/game/scenes/Levels/starting_area_level.gd
Zeeshaun 67573fad26
All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 49s
Deploy Promiscuity Character API / deploy (push) Successful in 48s
Deploy Promiscuity Crafting API / deploy (push) Successful in 48s
Deploy Promiscuity Inventory API / deploy (push) Successful in 47s
Deploy Promiscuity Locations API / deploy (push) Successful in 47s
Deploy Promiscuity Mail API / deploy (push) Successful in 47s
Deploy Promiscuity World API / deploy (push) Successful in 47s
k8s smoke test / test (push) Successful in 10s
Moving playground to its own menu option so main game can be worked on cleanly
2026-04-15 20:06:09 -05:00

18 lines
405 B
GDScript

extends Node3D
@export var player_spawn_position := Vector3(0.0, 2.0, 0.0)
@onready var _player: RigidBody3D = get_node_or_null("Player") as RigidBody3D
func _ready() -> void:
_move_player_to_spawn()
func _move_player_to_spawn() -> void:
if _player == null:
return
_player.global_position = player_spawn_position
_player.linear_velocity = Vector3.ZERO
_player.angular_velocity = Vector3.ZERO