VegeCard/Scenes/Main.tscn

97 lines
4.0 KiB
Plaintext
Raw Normal View History

2025-03-20 02:03:37 +08:00
[gd_scene load_steps=6 format=4 uid="uid://bdhkwmdjla3dy"]
2025-03-18 15:47:09 +08:00
[ext_resource type="Script" uid="uid://cvjgu1sx802tc" path="res://Scripts/GameManager.gd" id="1_r150o"]
[ext_resource type="TileSet" uid="uid://d1gtddd47nuvg" path="res://Assets/TileSets/Tilesets.tres" id="2_idj7w"]
2025-03-20 02:03:37 +08:00
[ext_resource type="FontFile" uid="uid://bnipxsg3yhkk8" path="res://Assets/Fonts/文字主题.ttf" id="3_kln2b"]
2025-03-18 15:47:09 +08:00
2025-03-20 00:56:38 +08:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_idj7w"]
size = Vector2(336, 450)
2025-03-18 15:47:09 +08:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kln2b"]
size = Vector2(48, 71)
2025-03-20 02:03:37 +08:00
[node name="GameRoot" type="Node2D" node_paths=PackedStringArray("left_top_of_board", "init_card_anchos", "score_num_label")]
2025-03-18 15:47:09 +08:00
script = ExtResource("1_r150o")
cols = 7
cell_size = Vector2i(48, 64)
left_top_of_board = NodePath("Tiles/Board/LeftTop")
init_card_anchos = [NodePath("Tiles/Cards/Marker1"), NodePath("Tiles/Cards/Marker2"), NodePath("Tiles/Cards/Marker3"), NodePath("Tiles/Cards/Marker4")]
2025-03-20 02:03:37 +08:00
score_num_label = NodePath("Score/ScoreNum")
2025-03-18 15:47:09 +08:00
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(-159, -32)
2025-03-27 10:19:13 +08:00
zoom = Vector2(1.255, 1.255)
2025-03-18 15:47:09 +08:00
[node name="Tiles" type="Node2D" parent="."]
[node name="Board" type="TileMapLayer" parent="Tiles"]
position = Vector2(80, 0)
tile_map_data = PackedByteArray("AAD2//z/AAAAAAAAAAD3//3/AAAAAAAAAAD4//7/AAAAAAAAAAD5////AAAAAAAAAAD6/wAAAAAAAAAAAAD7/wEAAAAAAAAAAAD8/wIAAAAAAAAAAAD5/wEAAAAAAAAAAAD7////AAAAAAAAAAD8//7/AAAAAAAAAAD7//3/AAAAAAAAAAD4//z/AAAAAAAAAAD6//z/AAAAAAAAAAD5//3/AAAAAAAAAAD8//z/AAAAAAAAAAD2//7/AAAAAAAAAAD3////AAAAAAAAAAD2/wAAAAAAAAAAAAD3/wEAAAAAAAAAAAD4/wAAAAAAAAAAAAD2/wIAAAAAAAAAAAD4/wIAAAAAAAAAAAD6/wIAAAAAAAAAAAD8/wAAAAAAAAAAAAD6//7/AAAAAAAAAAD3//z/AAABAAAAAAD2//3/AAABAAAAAAD3//7/AAABAAAAAAD2////AAABAAAAAAD4////AAABAAAAAAD3/wAAAAABAAAAAAD2/wEAAAABAAAAAAD4/wEAAAABAAAAAAD3/wIAAAABAAAAAAD5/wIAAAABAAAAAAD7/wIAAAABAAAAAAD6/wEAAAABAAAAAAD7/wAAAAABAAAAAAD8/wEAAAABAAAAAAD5/wAAAAABAAAAAAD6////AAABAAAAAAD8////AAABAAAAAAD7//7/AAABAAAAAAD5//7/AAABAAAAAAD6//3/AAABAAAAAAD4//3/AAABAAAAAAD5//z/AAABAAAAAAD7//z/AAABAAAAAAD8//3/AAABAAAAAAA=")
tile_set = ExtResource("2_idj7w")
[node name="LeftTop" type="Marker2D" parent="Tiles/Board"]
position = Vector2(-480, -256)
2025-03-20 00:56:38 +08:00
[node name="BoardArea" type="Area2D" parent="Tiles/Board"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tiles/Board/BoardArea"]
position = Vector2(-312, -33)
shape = SubResource("RectangleShape2D_idj7w")
2025-03-18 15:47:09 +08:00
[node name="Cards" type="TileMapLayer" parent="Tiles"]
position = Vector2(-32, 0)
tile_map_data = PackedByteArray("AAABAPz/AQAAAAAAAAA=")
tile_set = ExtResource("2_idj7w")
[node name="CardsArea" type="Area2D" parent="Tiles/Cards"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tiles/Cards/CardsArea"]
position = Vector2(72, -224.5)
shape = SubResource("RectangleShape2D_kln2b")
[node name="Marker1" type="Marker2D" parent="Tiles/Cards"]
position = Vector2(72, -128)
gizmo_extents = 24.0
[node name="Marker2" type="Marker2D" parent="Tiles/Cards"]
position = Vector2(72, -40)
gizmo_extents = 24.0
[node name="Marker3" type="Marker2D" parent="Tiles/Cards"]
position = Vector2(72, 48)
gizmo_extents = 24.0
[node name="Marker4" type="Marker2D" parent="Tiles/Cards"]
position = Vector2(72, 136)
gizmo_extents = 24.0
[node name="BoardCells" type="Node2D" parent="."]
[node name="MouseAnchor" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Cards" type="Node2D" parent="."]
2025-03-20 00:56:38 +08:00
2025-03-20 02:03:37 +08:00
[node name="Score" type="Label" parent="."]
offset_left = -400.0
offset_top = -328.0
offset_right = -64.0
offset_bottom = -272.0
theme_override_fonts/font = ExtResource("3_kln2b")
theme_override_font_sizes/font_size = 48
text = "Score:"
[node name="ScoreNum" type="Label" parent="Score"]
layout_mode = 0
offset_left = 128.0
offset_right = 336.0
offset_bottom = 56.0
theme_override_fonts/font = ExtResource("3_kln2b")
theme_override_font_sizes/font_size = 48
text = "0"
2025-03-20 00:56:38 +08:00
[connection signal="input_event" from="Tiles/Board/BoardArea" to="." method="_on_board_area_input_event"]