创建新工程
This commit is contained in:
32
scenes/RemoteCharacter.tscn
Normal file
32
scenes/RemoteCharacter.tscn
Normal file
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://remote_character"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/CharacterController.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://scripts/CharacterSprite.gd" id="2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_remote"]
|
||||
radius = 16.0
|
||||
|
||||
[node name="RemoteCharacter" type="CharacterBody2D"]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_remote")
|
||||
|
||||
[node name="CharacterSprite" type="Node2D" parent="."]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
offset_left = -50.0
|
||||
offset_top = -50.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = -30.0
|
||||
text = "Remote"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="StatusIndicator" type="ColorRect" parent="."]
|
||||
offset_left = 18.0
|
||||
offset_top = -40.0
|
||||
offset_right = 26.0
|
||||
offset_bottom = -32.0
|
||||
color = Color(0.5, 0.5, 0.5, 0.6)
|
||||
Reference in New Issue
Block a user