added player connection
This commit is contained in:
29
project/scenes/player.tscn
Normal file
29
project/scenes/player.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://co4dwle8qgvn4"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/player.gd" id="1_0ulg3"]
|
||||
[ext_resource type="Texture2D" uid="uid://brayuh2pw38ix" path="res://icon.svg" id="1_5um25"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gcdh3"]
|
||||
size = Vector2(128, 128)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_0ulg3")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_5um25")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_gcdh3")
|
||||
|
||||
[node name="NameTag" type="Label" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -11.5
|
||||
offset_right = 20.0
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
Reference in New Issue
Block a user