menu + player
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://4ubk6w44h4s2"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://4ubk6w44h4s2"]
|
||||
|
||||
[ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"]
|
||||
[ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"]
|
||||
[ext_resource type="PackedScene" uid="uid://co0u7xd45nxv1" path="res://scene/control/menu.tscn" id="3_6uvd0"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5g3cc"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" node_paths=PackedStringArray("menu")]
|
||||
position = Vector2(1, 1)
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_gmlsd")
|
||||
Speed = 5000.0
|
||||
menu = NodePath("Camera2D/menu")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_5g3cc")
|
||||
@@ -19,3 +21,15 @@ position = Vector2(2, 1)
|
||||
texture = ExtResource("2_w2lj6")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[node name="menu" parent="Camera2D" instance=ExtResource("3_6uvd0")]
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -150.0
|
||||
offset_right = -200.0
|
||||
offset_bottom = -150.0
|
||||
|
||||
Reference in New Issue
Block a user