add player spawn object
This commit is contained in:
parent
7047899f35
commit
69ee1ad197
3 changed files with 13 additions and 0 deletions
5
scenes/markers/player_spawn_point.gd
Normal file
5
scenes/markers/player_spawn_point.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Marker2D
|
||||
|
||||
|
||||
@export_range(1,2) var player_id: int
|
||||
@onready var player_scene: PackedScene = preload("res://scenes/player/player.tscn")
|
||||
1
scenes/markers/player_spawn_point.gd.uid
Normal file
1
scenes/markers/player_spawn_point.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bvokstchph1vk
|
||||
7
scenes/markers/player_spawn_point.tscn
Normal file
7
scenes/markers/player_spawn_point.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://b2pq6fwt4ge21"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bvokstchph1vk" path="res://scenes/markers/player_spawn_point.gd" id="1_qvk6i"]
|
||||
|
||||
[node name="PlayerSpawnPoint" type="Marker2D"]
|
||||
gizmo_extents = 18.6
|
||||
script = ExtResource("1_qvk6i")
|
||||
Loading…
Add table
Reference in a new issue