mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-25 04:52:29 +08:00
feat(地图): 添加沙漠地图资源并更新世界场景
- 新增沙漠地图纹理资源及其导入配置 - 在世界场景中替换城堡地图为沙漠地图 - 为地图添加碰撞区域和边界
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
[gd_scene load_steps=9 format=3 uid="uid://dmxi1ikn6avig"]
|
[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="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://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="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"]
|
[ext_resource type="Script" path="res://scripts/Tools/CameraManager.gd" id="5_mk7bv"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ckk8kahhof06u" path="res://resources/maps/Castle 2.png" id="6_p0nkj"]
|
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_ykpvi"]
|
[sub_resource type="Animation" id="Animation_ykpvi"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
@@ -64,6 +64,12 @@ _data = {
|
|||||||
"bigLaser": SubResource("Animation_kii8h")
|
"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"]
|
[node name="world" type="Node2D"]
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
script = ExtResource("1_lxsxj")
|
script = ExtResource("1_lxsxj")
|
||||||
@@ -84,8 +90,25 @@ libraries = {
|
|||||||
"": SubResource("AnimationLibrary_44ixa")
|
"": SubResource("AnimationLibrary_44ixa")
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="background" type="Sprite2D" parent="."]
|
[node name="map" type="StaticBody2D" parent="."]
|
||||||
|
|
||||||
|
[node name="background" type="Sprite2D" parent="map"]
|
||||||
z_index = -100
|
z_index = -100
|
||||||
texture = ExtResource("6_p0nkj")
|
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")]
|
[node name="rooster" parent="." groups=["players"] instance=ExtResource("3_5ui6q")]
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dk7u1x1e8ptj7"
|
||||||
|
path="res://.godot/imported/Desert.png-48f16732054c8fc6db460d41c9442ca3.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/maps/Desert.png"
|
||||||
|
dest_files=["res://.godot/imported/Desert.png-48f16732054c8fc6db460d41c9442ca3.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
Reference in New Issue
Block a user