godot-ultimate-tutorial/scenes/levels/level.tscn
2023-08-15 22:51:29 +02:00

123 lines
6.5 KiB
Plaintext

[gd_scene load_steps=17 format=3 uid="uid://ckdokdim0lt4o"]
[ext_resource type="Script" path="res://scenes/levels/level.gd" id="1_ktr5c"]
[ext_resource type="PackedScene" uid="uid://d2xjago7tcyad" path="res://scenes/objects/gate.tscn" id="2_6vj8d"]
[ext_resource type="Texture2D" uid="uid://cmv32280o6ohi" path="res://graphics/ground/stones.png" id="2_goc6r"]
[ext_resource type="Texture2D" uid="uid://dus11g3ogmy1a" path="res://graphics/decals/dirt_patch.png" id="3_2vhyy"]
[ext_resource type="PackedScene" uid="uid://cdo8mdy41ooe8" path="res://scenes/player/player.tscn" id="3_blhoc"]
[ext_resource type="Texture2D" uid="uid://c4r5bb3ecpa1d" path="res://graphics/decals/moss/moss_1.png" id="4_ilkhv"]
[ext_resource type="Texture2D" uid="uid://dqp2a3yygo8br" path="res://graphics/decals/moss/moss_2.png" id="5_j37hb"]
[ext_resource type="Texture2D" uid="uid://kfb8wnc46ja0" path="res://graphics/decals/moss/moss_3.png" id="6_s6uxv"]
[ext_resource type="Texture2D" uid="uid://cgbcahfkt84vd" path="res://graphics/decals/moss/moss_4.png" id="7_4dhfa"]
[ext_resource type="Texture2D" uid="uid://s286d7w6twmx" path="res://graphics/decals/moss/moss_5.png" id="8_kypf1"]
[ext_resource type="Texture2D" uid="uid://bj2ln83iossbs" path="res://graphics/tilesets/outside_walls.png" id="9_eyu44"]
[ext_resource type="Texture2D" uid="uid://cs6g737ruq8gq" path="res://graphics/tilesets/soil.png" id="10_gtyd6"]
[ext_resource type="PackedScene" uid="uid://bqh1eariqhtf6" path="res://scenes/houses/house.tscn" id="11_rxhcj"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_b83lq"]
resource_name = "walls"
texture = ExtResource("9_eyu44")
texture_region_size = Vector2i(390, 390)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
0:3/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ssx7q"]
resource_name = "soil"
texture = ExtResource("10_gtyd6")
texture_region_size = Vector2i(390, 390)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
[sub_resource type="TileSet" id="TileSet_tb5c3"]
tile_size = Vector2i(390, 390)
sources/0 = SubResource("TileSetAtlasSource_b83lq")
sources/1 = SubResource("TileSetAtlasSource_ssx7q")
[node name="Level" type="Node2D"]
script = ExtResource("1_ktr5c")
[node name="Ground" type="Node2D" parent="."]
[node name="Soil" type="Sprite2D" parent="Ground"]
texture_repeat = 2
position = Vector2(43, 596.5)
scale = Vector2(1, 1.01874)
texture = ExtResource("2_goc6r")
region_enabled = true
region_rect = Rect2(-500000, 0, 500000, 500000)
[node name="Decoration" type="Sprite2D" parent="Ground"]
modulate = Color(0.517647, 0.372549, 0.168627, 0.847059)
position = Vector2(-781, 1136)
texture = ExtResource("3_2vhyy")
[node name="Moss1" type="Sprite2D" parent="Ground"]
position = Vector2(-752, 2087)
texture = ExtResource("4_ilkhv")
[node name="Moss2" type="Sprite2D" parent="Ground"]
position = Vector2(636, 1096)
texture = ExtResource("5_j37hb")
[node name="Moss3" type="Sprite2D" parent="Ground"]
position = Vector2(1281, 1164)
texture = ExtResource("6_s6uxv")
[node name="Moss4" type="Sprite2D" parent="Ground"]
position = Vector2(-1542, 126)
texture = ExtResource("7_4dhfa")
[node name="Moss5" type="Sprite2D" parent="Ground"]
position = Vector2(-3347, 282)
texture = ExtResource("8_kypf1")
[node name="TileMap" type="TileMap" parent="Ground"]
position = Vector2(4, -2)
tile_set = SubResource("TileSet_tb5c3")
format = 2
layer_0/name = "SoilLayer"
layer_0/tile_data = PackedInt32Array(-11, 1, 0, -10, 65537, 0, -9, 65537, 0, -8, 65537, 0, -7, 65537, 0, -6, 131073, 0, 65530, 131073, 2, 65529, 65537, 2, 65528, 65537, 2, 65527, 65537, 2, 65526, 65537, 2, 65525, 1, 2, -393208, 65537, 1, -327672, 65537, 1, -262136, 65537, 1, -196600, 65537, 1, -131064, 65537, 1, -65528, 65537, 2, -393207, 65537, 1, -327671, 65537, 1, -262135, 65537, 1, -196599, 65537, 1, -131063, 65537, 1, -65527, 65537, 2, -393206, 65537, 1, -327670, 65537, 1, -262134, 65537, 1, -196598, 65537, 1, -131062, 65537, 1, -65526, 65537, 2, -393205, 65537, 1, -327669, 65537, 1, -262133, 65537, 1, -196597, 65537, 1, -131061, 65537, 1, -65525, 65537, 2, -393204, 65537, 1, -327668, 65537, 1, -262132, 65537, 1, -196596, 65537, 1, -131060, 65537, 1, -65524, 65537, 2, -393203, 65537, 1, -327667, 65537, 1, -262131, 65537, 1, -196595, 65537, 1, -131059, 65537, 1, -65523, 65537, 2, -393202, 65537, 1, -327666, 65537, 1, -262130, 65537, 1, -196594, 65537, 1, -131058, 65537, 1, -65522, 65537, 2, -393201, 65537, 1, -327665, 65537, 1, -262129, 65537, 1, -196593, 65537, 1, -131057, 65537, 1, -65521, 65537, 2, -393200, 65537, 1, -327664, 65537, 1, -262128, 65537, 1, -196592, 65537, 1, -131056, 65537, 1, -65520, 65537, 2, -393209, 1, 1, -327673, 1, 1, -262137, 1, 1, -196601, 1, 1, -131065, 1, 1, -65529, 1, 2, -393199, 131073, 1, -327663, 131073, 1, -262127, 131073, 1, -196591, 131073, 1, -131055, 131073, 1, -65519, 131073, 2, -458744, 65537, 0, -458743, 65537, 0, -458742, 65537, 0, -458741, 65537, 0, -458740, 65537, 0, -458739, 65537, 0, -458738, 65537, 0, -458737, 65537, 0, -458736, 65537, 0, -458735, 131073, 0, -458745, 1, 0)
layer_1/name = "WallLayer"
layer_1/enabled = true
layer_1/modulate = Color(1, 1, 1, 1)
layer_1/y_sort_enabled = false
layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array(-65531, 65536, 2, -65530, 65536, 0, -65529, 65536, 0, -65528, 65536, 0, -65527, 65536, 0, -65526, 65536, 0, -65525, 65536, 0, -65524, 65536, 0, -65523, 65536, 0, -65522, 65536, 0, -131067, 0, 2, -196603, 0, 2, -262139, 0, 2, -327675, 0, 2, -393211, 0, 2, -458747, 0, 2, -393220, 0, 2, -327684, 0, 2, -262148, 0, 2, -196612, 0, 2, -131076, 0, 2, -65540, 0, 2, -4, 131072, 2, -5, 65536, 0, -6, 65536, 0, -7, 65536, 0, -8, 65536, 0, -9, 65536, 0, -10, 65536, 0, -11, 65536, 0, -12, 65536, 0, -13, 65536, 0, -14, 65536, 0, -15, 65536, 0)
[node name="House" parent="Ground" instance=ExtResource("11_rxhcj")]
position = Vector2(-1562, 3718)
rotation = -2.31447
scale = Vector2(0.717171, 0.717171)
[node name="Gate" parent="." instance=ExtResource("2_6vj8d")]
position = Vector2(449, -466)
[node name="Player" parent="." instance=ExtResource("3_blhoc")]
position = Vector2(535, 571)
[node name="Camera2D" type="Camera2D" parent="Player"]
zoom = Vector2(0.6, 0.6)
position_smoothing_enabled = true
[node name="Projectiles" type="Node2D" parent="."]
[connection signal="player_entered_gate" from="Gate" to="." method="_on_gate_player_entered_gate"]
[connection signal="grenade_thrown" from="Player" to="." method="_on_player_grenade_thrown"]
[connection signal="laser_fired" from="Player" to="." method="_on_player_laser_fired"]