2024-10-25 15:41:39 +08:00
|
|
|
[gd_scene load_steps=10 format=4 uid="uid://1wl1fl3qtxc"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scene/test/test_main.gd" id="1_aimp4"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dxtu12mw7fsq8" path="res://res/image/test/tile.png" id="1_jp0cd"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cf2g2urxaukxb" path="res://scene/test/character.tscn" id="2_nvm7o"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b4mawovxv402a" path="res://scene/test/food.tscn" id="3_fgsvv"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dl1axae8yeeeh" path="res://scene/test/other_character.tscn" id="4_eyxcn"]
|
|
|
|
|
|
|
|
[sub_resource type="NavigationPolygon" id="NavigationPolygon_tjudi"]
|
|
|
|
vertices = PackedVector2Array(32, 32, -32, 32, -32, -32, 32, -32)
|
|
|
|
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
|
|
|
|
outlines = Array[PackedVector2Array]([PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)])
|
|
|
|
agent_radius = 0.0
|
|
|
|
|
|
|
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_pe5ig"]
|
|
|
|
texture = ExtResource("1_jp0cd")
|
|
|
|
texture_region_size = Vector2i(64, 64)
|
|
|
|
0:0/0 = 0
|
|
|
|
0:0/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_tjudi")
|
|
|
|
0:1/0 = 0
|
|
|
|
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-32, -32, 32, -32, 32, 32, -32, 32)
|
|
|
|
|
|
|
|
[sub_resource type="TileSet" id="TileSet_jmwcd"]
|
|
|
|
tile_size = Vector2i(64, 64)
|
|
|
|
physics_layer_0/collision_layer = 1
|
|
|
|
navigation_layer_0/layers = 1
|
|
|
|
sources/0 = SubResource("TileSetAtlasSource_pe5ig")
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_shajf"]
|
2024-10-25 17:45:08 +08:00
|
|
|
radius = 38.71
|
2024-10-25 15:41:39 +08:00
|
|
|
|
|
|
|
[node name="main" type="Node2D" node_paths=PackedStringArray("player")]
|
|
|
|
script = ExtResource("1_aimp4")
|
|
|
|
player = NodePath("CB_add_pos/CharacterBody2D")
|
|
|
|
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="navigation" type="TileMapLayer" parent="Node2D"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
tile_map_data = PackedByteArray("AAD0//r/AAAAAAAAAAD0//v/AAAAAAEAAAD0//z/AAAAAAEAAAD0//3/AAAAAAAAAAD0//7/AAAAAAAAAAD0////AAAAAAAAAAD0/wAAAAAAAAAAAAD0/wEAAAAAAAAAAAD0/wIAAAAAAAAAAAD0/wMAAAAAAAEAAAD0/wQAAAAAAAEAAAD0/wUAAAAAAAAAAAD1/wYAAAAAAAEAAAD2/wYAAAAAAAEAAAD3/wcAAAAAAAAAAAD4/wcAAAAAAAEAAAD5/wcAAAAAAAAAAAD6/wgAAAAAAAEAAAD7/wgAAAAAAAAAAAD8/wgAAAAAAAAAAAD9/wgAAAAAAAAAAAD+/wgAAAAAAAAAAAD+/wkAAAAAAAEAAAD//wkAAAAAAAAAAAAAAAkAAAAAAAAAAAABAAkAAAAAAAAAAAACAAkAAAAAAAAAAAADAAkAAAAAAAAAAAAEAAkAAAAAAAAAAAAFAAkAAAAAAAEAAAAGAAkAAAAAAAEAAAAHAAkAAAAAAAAAAAAIAAkAAAAAAAAAAAAJAAkAAAAAAAAAAAAKAAkAAAAAAAAAAAALAAkAAAAAAAAAAAAMAAkAAAAAAAAAAAAMAAgAAAAAAAAAAAANAAgAAAAAAAAAAAANAAcAAAAAAAAAAAANAAYAAAAAAAAAAAANAAUAAAAAAAAAAAANAAQAAAAAAAAAAAANAAMAAAAAAAAAAAAMAAMAAAAAAAAAAAA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wAAAAAAAAAAAADv/wEAAAAAAAAAAADv/wIAAAAAAAAAAADv/wMAAAAAAAAAAADv/wQAAAAAAAAAAADv/wUAAAAAAAAAAADv/wYAAAAAAAAAAADv/wcAAAAAAAAAAADv/wgAAAAAAAAAAADv/wkAAAAAAAAAAADv/woAAAAAAAAAAADv/wsAAAAAAAAAAADw//f/AAAAAAAAAADw//j/AAAAAAAAAADw//n/AAAAAAAAAADw//r/AAAAAAAAAADw//v/AAAAAAAAAADw//z/AAAAAAAAAADw//3/AAAAAAAAAADw//7/AAAAAAAAAADw////AAAAAAAAAADw/wAAAAAAAAAAAADw/wEAAAAAAAAAAADw/wIAAAAAAAAAAADw/wMAAAAAAAAAAADw/wQAAAAAAAAAAADw/wUAAAAAAAAAAADw/wYAAAAAAAAAAADw/wcAAAAAAAAAAADw/wgAAAAAAAAAAADw/wkAAAAAAAAAAADw/woAAAAAAAAAAADw/wsAAAAAAAAAAADx//f/AAAAAAAAAADx//j/AAAAAAAAAADx//n/AAAAAAAAAADx//r/AAAAAAAAAADx//v/AAAAAAAAAADx//z/AAAAAAAAAADx//3/AAAAAAAAAADx//7/AAAAAAAAAADx////AAAAAAAAAADx/wAAAAAAAAAAAADx/wEAAAAAAAAAAADx/wIAAAAAAAAAAADx/wMAAAAAAAAAAADx/wQAAAAAAAAAAADx/wUAAAAAAAAAAADx/wYAAAAAAAAAAADx/wcAAAAAAAAAAADx/wgAAAAAAAAAAADx/wkAAAAAAAAAAADx/woAAAAAAAAAAADx/wsAAAAAAAAAAADy//f/AAAAAAAAAADy//j/AAAAAAAAAADy//n/AAAAAAAAAADy//r/AAAAAAAAAADy//v/AAAAAAEAAADy//z/AAAAAAEAAADy//3/AAAAAAEAAADy//7/AAAAAAEAAADy////AAAAAAEAAADy/wAAAAAAAAEAAADy/wEAAAAAAAAAAADy/wIAAAAAAAAAAADy/wMAAAAAAAAAAADy/wQAAAAAAAAAAADy/wUAAAAAAAAAAADy/wYAAAAAAAAAAADy/wcAAAAAAAA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AAD2/wUAAAAAAA
|
|
|
|
tile_set = SubResource("TileSet_jmwcd")
|
|
|
|
|
|
|
|
[node name="back" type="TileMapLayer" parent="Node2D"]
|
|
|
|
|
|
|
|
[node name="build" type="TileMapLayer" parent="Node2D"]
|
|
|
|
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="CanvasLayer"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="mouse_finder" type="Area2D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="mouse_finder"]
|
|
|
|
shape = SubResource("CircleShape2D_shajf")
|
|
|
|
|
|
|
|
[node name="CB_add_pos" type="Node2D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
y_sort_enabled = true
|
|
|
|
|
|
|
|
[node name="CharacterBody2D" parent="CB_add_pos" instance=ExtResource("2_nvm7o")]
|
|
|
|
unit_id = "player"
|
|
|
|
unit_type = "player"
|
|
|
|
|
|
|
|
[node name="other_character" parent="CB_add_pos" instance=ExtResource("4_eyxcn")]
|
|
|
|
position = Vector2(1048, 119)
|
|
|
|
unit_id = "test_1_1"
|
|
|
|
unit_type = "test_1"
|
|
|
|
|
|
|
|
[node name="other_character2" parent="CB_add_pos" instance=ExtResource("4_eyxcn")]
|
2024-10-25 17:45:08 +08:00
|
|
|
position = Vector2(-718, 66)
|
2024-10-25 15:41:39 +08:00
|
|
|
unit_id = "test_1_2"
|
|
|
|
unit_type = "test_1"
|
|
|
|
|
|
|
|
[node name="food" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-917, -398)
|
|
|
|
|
|
|
|
[node name="food2" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-986, -147)
|
|
|
|
|
|
|
|
[node name="food3" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-491, -411)
|
|
|
|
|
|
|
|
[node name="food4" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-66, -408)
|
|
|
|
|
|
|
|
[node name="food5" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(343, -416)
|
|
|
|
|
|
|
|
[node name="food6" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(433, 275)
|
|
|
|
|
|
|
|
[node name="food7" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(161, 131)
|
|
|
|
|
|
|
|
[node name="food8" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-176, 192)
|
|
|
|
|
|
|
|
[node name="food9" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-580, 86)
|
|
|
|
|
|
|
|
[node name="food10" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(-360, 343)
|
|
|
|
|
|
|
|
[node name="food11" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(154, 522)
|
|
|
|
|
|
|
|
[node name="food12" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(615, 638)
|
|
|
|
|
|
|
|
[node name="food13" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(1091, 597)
|
|
|
|
|
|
|
|
[node name="food14" parent="CB_add_pos" instance=ExtResource("3_fgsvv")]
|
|
|
|
position = Vector2(464, 0)
|
|
|
|
|
2024-10-25 17:45:08 +08:00
|
|
|
[node name="other_character3" parent="CB_add_pos" instance=ExtResource("4_eyxcn")]
|
|
|
|
position = Vector2(-121, 423)
|
|
|
|
unit_id = "test_1_3"
|
|
|
|
unit_type = "test_1"
|
|
|
|
|
2024-10-25 15:41:39 +08:00
|
|
|
[connection signal="gui_input" from="CanvasLayer/Control" to="." method="_on_control_gui_input"]
|