1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/components/Scenes/World.tscn
T
fallingshrimp 27b611fee1 feat(地图): 添加沙漠地图资源并更新世界场景
- 新增沙漠地图纹理资源及其导入配置
- 在世界场景中替换城堡地图为沙漠地图
- 为地图添加碰撞区域和边界
2025-08-29 16:36:35 +08:00

115 lines
4.0 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://dmxi1ikn6avig"]
[ext_resource type="Script" path="res://scripts/Tools/WorldManager.gd" id="1_lxsxj"]
[ext_resource type="PackedScene" uid="uid://dfwg750a47ggx" path="res://components/Scenes/UI.tscn" id="2_04cdd"]
[ext_resource type="PackedScene" uid="uid://bm7ymrri6pykb" path="res://components/Characters/Rooster.tscn" id="3_5ui6q"]
[ext_resource type="Texture2D" uid="uid://dk7u1x1e8ptj7" path="res://resources/maps/Desert.png" id="4_04do5"]
[ext_resource type="Script" path="res://scripts/Tools/CameraManager.gd" id="5_mk7bv"]
[sub_resource type="Animation" id="Animation_ykpvi"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:zoom:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:zoom:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_kii8h"]
resource_name = "bigLaser"
length = 5.0
step = 0.1
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:zoom:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 1.25, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 3)
}
tracks/1/type = "bezier"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:zoom:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"handle_modes": PackedInt32Array(0, 0, 0),
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0, 1.25, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0, 0.5, 3)
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_44ixa"]
_data = {
"RESET": SubResource("Animation_ykpvi"),
"bigLaser": SubResource("Animation_kii8h")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_4hkht"]
radius = 126.89
[sub_resource type="CircleShape2D" id="CircleShape2D_4y8st"]
radius = 46.1736
[node name="world" type="Node2D"]
y_sort_enabled = true
script = ExtResource("1_lxsxj")
metadata/_edit_vertical_guides_ = [-1.0, 57.0]
[node name="UI" parent="." instance=ExtResource("2_04cdd")]
[node name="camera" type="Camera2D" parent="."]
process_mode = 3
offset = Vector2(0, -80)
process_callback = 0
position_smoothing_enabled = true
script = ExtResource("5_mk7bv")
[node name="animator" type="AnimationPlayer" parent="camera"]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_44ixa")
}
[node name="map" type="StaticBody2D" parent="."]
[node name="background" type="Sprite2D" parent="map"]
z_index = -100
scale = Vector2(5, 5)
texture = ExtResource("4_04do5")
[node name="xrz1" type="CollisionShape2D" parent="map"]
position = Vector2(-1827, 575)
shape = SubResource("CircleShape2D_4hkht")
[node name="xrz2" type="CollisionShape2D" parent="map"]
position = Vector2(251, 118)
shape = SubResource("CircleShape2D_4y8st")
[node name="shan" type="CollisionPolygon2D" parent="map"]
polygon = PackedVector2Array(-2391, -370, -1721, -405, -1307, -662, -1217, -1181, -995, -1272, -531, -1146, -486, -1050, -461, -838, -380, -778, -325, -476, -229, -571, -123, -592, -22, -279, 129, -188, 527, -138, 764, -183, 920, -466, 1036, -627, 1167, -617, 1182, -219, 1364, -123, 1414, -309, 1454, -823, 1747, -793, 1691, -319, 1721, -148, 2039, -17, 2377, 13, 2417, -1821, -2411, -1846)
[node name="shan2" type="CollisionPolygon2D" parent="map"]
polygon = PackedVector2Array(-2427, -357, -2419, 1803, 2429, 1825, 2391, -266, 2731, -266, 2723, 2241, -3318, 2158, -2910, -923, -2427, -863)
[node name="rooster" parent="." groups=["players"] instance=ExtResource("3_5ui6q")]