-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main.tscn
114 lines (94 loc) · 10.6 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Scenes/Deck.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scripts/Main.gd" type="Script" id=2]
[ext_resource path="res://Scenes/Hand.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scenes/EnemyHand.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scenes/Table.tscn" type="PackedScene" id=5]
[ext_resource path="res://Graphics/monochrome_packed.png" type="Texture" id=6]
[ext_resource path="res://Graphics/CharacterSprites/MizWiz3.png" type="Texture" id=7]
[ext_resource path="res://Graphics/CharacterSprites/MizWiz1.png" type="Texture" id=8]
[ext_resource path="res://Graphics/CharacterSprites/MizWiz2.png" type="Texture" id=9]
[ext_resource path="res://Scenes/WarCards.tscn" type="PackedScene" id=10]
[ext_resource path="res://Scenes/UI.tscn" type="PackedScene" id=11]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 8 ) ],
"loop": true,
"name": "idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 8 ), ExtResource( 9 ), ExtResource( 7 ) ],
"loop": true,
"name": "talking",
"speed": 5.0
} ]
[sub_resource type="TileSet" id=2]
0/name = "monochrome_packed.png 0"
0/texture = ExtResource( 6 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 257, 305, 62, 46 )
0/tile_mode = 1
0/autotile/bitmask_mode = 1
0/autotile/bitmask_flags = [ Vector2( 0, 0 ), 432, Vector2( 0, 1 ), 438, Vector2( 0, 2 ), 54, Vector2( 1, 0 ), 504, Vector2( 1, 1 ), 16, Vector2( 1, 2 ), 63, Vector2( 2, 0 ), 216, Vector2( 2, 1 ), 219, Vector2( 2, 2 ), 27, Vector2( 3, 1 ), 511 ]
0/autotile/icon_coordinate = Vector2( 0, 0 )
0/autotile/tile_size = Vector2( 14, 14 )
0/autotile/spacing = 2
0/autotile/occluder_map = [ ]
0/autotile/navpoly_map = [ ]
0/autotile/priority_map = [ ]
0/autotile/z_index_map = [ ]
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0
[node name="Main" type="Node2D"]
script = ExtResource( 2 )
[node name="Enemy" type="Node" parent="."]
[node name="AnimatedSprite" type="AnimatedSprite" parent="Enemy"]
position = Vector2( 296, 88 )
scale = Vector2( 23.5, 10 )
z_index = -1
frames = SubResource( 1 )
animation = "talking"
[node name="CardController" type="Node" parent="."]
[node name="Deck" parent="CardController" instance=ExtResource( 1 )]
[node name="PlayerHand" parent="CardController" groups=[
"players",
] instance=ExtResource( 3 )]
position = Vector2( 0.667358, -0.667419 )
playername = "the player"
cardscale = Vector2( 2, 2 )
[node name="EnemyHand" parent="CardController" groups=[
"players",
] instance=ExtResource( 4 )]
playername = "the wizard"
cardscale = Vector2( 1, 1 )
[node name="Path2D" parent="CardController/EnemyHand" index="0"]
position = Vector2( 128, -72 )
[node name="Table" parent="CardController" instance=ExtResource( 5 )]
cardscale = Vector2( 1, 1 )
[node name="LeftPoint" parent="CardController/Table" index="1"]
position = Vector2( 128, 224 )
[node name="WarCards" parent="CardController" instance=ExtResource( 10 )]
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource( 2 )
cell_size = Vector2( 14, 14 )
format = 1
tile_data = PoolIntArray( 720902, 0, 0, 720903, 0, 1, 720904, 0, 1, 720905, 0, 1, 720906, 0, 1, 720907, 0, 1, 720908, 0, 1, 720909, 0, 1, 720910, 0, 1, 720911, 0, 1, 720912, 0, 1, 720913, 0, 1, 720914, 0, 1, 720915, 0, 1, 720916, 0, 1, 720917, 0, 1, 720918, 0, 1, 720919, 0, 1, 720920, 0, 1, 720921, 0, 1, 720922, 0, 1, 720923, 0, 1, 720924, 0, 1, 720925, 0, 1, 720926, 0, 1, 720927, 0, 1, 720928, 0, 1, 720929, 0, 1, 720930, 0, 1, 720931, 0, 2, 786438, 0, 65536, 786439, 0, 65539, 786440, 0, 65539, 786441, 0, 65539, 786442, 0, 65539, 786443, 0, 65539, 786444, 0, 65539, 786445, 0, 65539, 786446, 0, 65539, 786447, 0, 65539, 786448, 0, 65539, 786449, 0, 65539, 786450, 0, 65539, 786451, 0, 65539, 786452, 0, 65539, 786453, 0, 65539, 786454, 0, 65539, 786455, 0, 65539, 786456, 0, 65539, 786457, 0, 65539, 786458, 0, 65539, 786459, 0, 65539, 786460, 0, 65539, 786461, 0, 65539, 786462, 0, 65539, 786463, 0, 65539, 786464, 0, 65539, 786465, 0, 65539, 786466, 0, 65539, 786467, 0, 65538, 851974, 0, 65536, 851975, 0, 65539, 851976, 0, 65539, 851977, 0, 65539, 851978, 0, 65539, 851979, 0, 65539, 851980, 0, 65539, 851981, 0, 65539, 851982, 0, 65539, 851983, 0, 65539, 851984, 0, 65539, 851985, 0, 65539, 851986, 0, 65539, 851987, 0, 65539, 851988, 0, 65539, 851989, 0, 65539, 851990, 0, 65539, 851991, 0, 65539, 851992, 0, 65539, 851993, 0, 65539, 851994, 0, 65539, 851995, 0, 65539, 851996, 0, 65539, 851997, 0, 65539, 851998, 0, 65539, 851999, 0, 65539, 852000, 0, 65539, 852001, 0, 65539, 852002, 0, 65539, 852003, 0, 65538, 917510, 0, 65536, 917511, 0, 65539, 917512, 0, 65539, 917513, 0, 65539, 917514, 0, 65539, 917515, 0, 65539, 917516, 0, 65539, 917517, 0, 65539, 917518, 0, 65539, 917519, 0, 65539, 917520, 0, 65539, 917521, 0, 65539, 917522, 0, 65539, 917523, 0, 65539, 917524, 0, 65539, 917525, 0, 65539, 917526, 0, 65539, 917527, 0, 65539, 917528, 0, 65539, 917529, 0, 65539, 917530, 0, 65539, 917531, 0, 65539, 917532, 0, 65539, 917533, 0, 65539, 917534, 0, 65539, 917535, 0, 65539, 917536, 0, 65539, 917537, 0, 65539, 917538, 0, 65539, 917539, 0, 65538, 983046, 0, 65536, 983047, 0, 65539, 983048, 0, 65539, 983049, 0, 65539, 983050, 0, 65539, 983051, 0, 65539, 983052, 0, 65539, 983053, 0, 65539, 983054, 0, 65539, 983055, 0, 65539, 983056, 0, 65539, 983057, 0, 65539, 983058, 0, 65539, 983059, 0, 65539, 983060, 0, 65539, 983061, 0, 65539, 983062, 0, 65539, 983063, 0, 65539, 983064, 0, 65539, 983065, 0, 65539, 983066, 0, 65539, 983067, 0, 65539, 983068, 0, 65539, 983069, 0, 65539, 983070, 0, 65539, 983071, 0, 65539, 983072, 0, 65539, 983073, 0, 65539, 983074, 0, 65539, 983075, 0, 65538, 1048582, 0, 65536, 1048583, 0, 65539, 1048584, 0, 65539, 1048585, 0, 65539, 1048586, 0, 65539, 1048587, 0, 65539, 1048588, 0, 65539, 1048589, 0, 65539, 1048590, 0, 65539, 1048591, 0, 65539, 1048592, 0, 65539, 1048593, 0, 65539, 1048594, 0, 65539, 1048595, 0, 65539, 1048596, 0, 65539, 1048597, 0, 65539, 1048598, 0, 65539, 1048599, 0, 65539, 1048600, 0, 65539, 1048601, 0, 65539, 1048602, 0, 65539, 1048603, 0, 65539, 1048604, 0, 65539, 1048605, 0, 65539, 1048606, 0, 65539, 1048607, 0, 65539, 1048608, 0, 65539, 1048609, 0, 65539, 1048610, 0, 65539, 1048611, 0, 65538, 1114118, 0, 65536, 1114119, 0, 65539, 1114120, 0, 65539, 1114121, 0, 65539, 1114122, 0, 65539, 1114123, 0, 65539, 1114124, 0, 65539, 1114125, 0, 65539, 1114126, 0, 65539, 1114127, 0, 65539, 1114128, 0, 65539, 1114129, 0, 65539, 1114130, 0, 65539, 1114131, 0, 65539, 1114132, 0, 65539, 1114133, 0, 65539, 1114134, 0, 65539, 1114135, 0, 65539, 1114136, 0, 65539, 1114137, 0, 65539, 1114138, 0, 65539, 1114139, 0, 65539, 1114140, 0, 65539, 1114141, 0, 65539, 1114142, 0, 65539, 1114143, 0, 65539, 1114144, 0, 65539, 1114145, 0, 65539, 1114146, 0, 65539, 1114147, 0, 65538, 1179654, 0, 65536, 1179655, 0, 65539, 1179656, 0, 65539, 1179657, 0, 65539, 1179658, 0, 65539, 1179659, 0, 65539, 1179660, 0, 65539, 1179661, 0, 65539, 1179662, 0, 65539, 1179663, 0, 65539, 1179664, 0, 65539, 1179665, 0, 65539, 1179666, 0, 65539, 1179667, 0, 65539, 1179668, 0, 65539, 1179669, 0, 65539, 1179670, 0, 65539, 1179671, 0, 65539, 1179672, 0, 65539, 1179673, 0, 65539, 1179674, 0, 65539, 1179675, 0, 65539, 1179676, 0, 65539, 1179677, 0, 65539, 1179678, 0, 65539, 1179679, 0, 65539, 1179680, 0, 65539, 1179681, 0, 65539, 1179682, 0, 65539, 1179683, 0, 65538, 1245190, 0, 65536, 1245191, 0, 65539, 1245192, 0, 65539, 1245193, 0, 65539, 1245194, 0, 65539, 1245195, 0, 65539, 1245196, 0, 65539, 1245197, 0, 65539, 1245198, 0, 65539, 1245199, 0, 65539, 1245200, 0, 65539, 1245201, 0, 65539, 1245202, 0, 65539, 1245203, 0, 65539, 1245204, 0, 65539, 1245205, 0, 65539, 1245206, 0, 65539, 1245207, 0, 65539, 1245208, 0, 65539, 1245209, 0, 65539, 1245210, 0, 65539, 1245211, 0, 65539, 1245212, 0, 65539, 1245213, 0, 65539, 1245214, 0, 65539, 1245215, 0, 65539, 1245216, 0, 65539, 1245217, 0, 65539, 1245218, 0, 65539, 1245219, 0, 65538, 1310726, 0, 65536, 1310727, 0, 65539, 1310728, 0, 65539, 1310729, 0, 65539, 1310730, 0, 65539, 1310731, 0, 65539, 1310732, 0, 65539, 1310733, 0, 65539, 1310734, 0, 65539, 1310735, 0, 65539, 1310736, 0, 65539, 1310737, 0, 65539, 1310738, 0, 65539, 1310739, 0, 65539, 1310740, 0, 65539, 1310741, 0, 65539, 1310742, 0, 65539, 1310743, 0, 65539, 1310744, 0, 65539, 1310745, 0, 65539, 1310746, 0, 65539, 1310747, 0, 65539, 1310748, 0, 65539, 1310749, 0, 65539, 1310750, 0, 65539, 1310751, 0, 65539, 1310752, 0, 65539, 1310753, 0, 65539, 1310754, 0, 65539, 1310755, 0, 65538, 1376262, 0, 65536, 1376263, 0, 65539, 1376264, 0, 65539, 1376265, 0, 65539, 1376266, 0, 65539, 1376267, 0, 65539, 1376268, 0, 65539, 1376269, 0, 65539, 1376270, 0, 65539, 1376271, 0, 65539, 1376272, 0, 65539, 1376273, 0, 65539, 1376274, 0, 65539, 1376275, 0, 65539, 1376276, 0, 65539, 1376277, 0, 65539, 1376278, 0, 65539, 1376279, 0, 65539, 1376280, 0, 65539, 1376281, 0, 65539, 1376282, 0, 65539, 1376283, 0, 65539, 1376284, 0, 65539, 1376285, 0, 65539, 1376286, 0, 65539, 1376287, 0, 65539, 1376288, 0, 65539, 1376289, 0, 65539, 1376290, 0, 65539, 1376291, 0, 65538, 1441798, 0, 131072, 1441799, 0, 131073, 1441800, 0, 131073, 1441801, 0, 131073, 1441802, 0, 131073, 1441803, 0, 131073, 1441804, 0, 131073, 1441805, 0, 131073, 1441806, 0, 131073, 1441807, 0, 131073, 1441808, 0, 131073, 1441809, 0, 131073, 1441810, 0, 131073, 1441811, 0, 131073, 1441812, 0, 131073, 1441813, 0, 131073, 1441814, 0, 131073, 1441815, 0, 131073, 1441816, 0, 131073, 1441817, 0, 131073, 1441818, 0, 131073, 1441819, 0, 131073, 1441820, 0, 131073, 1441821, 0, 131073, 1441822, 0, 131073, 1441823, 0, 131073, 1441824, 0, 131073, 1441825, 0, 131073, 1441826, 0, 131073, 1441827, 0, 131074 )
[node name="UI" parent="." instance=ExtResource( 11 )]
[node name="EndWarTimer" type="Timer" parent="."]
one_shot = true
[connection signal="dead" from="CardController/PlayerHand" to="." method="_on_PlayerHand_dead"]
[connection signal="health_change" from="CardController/PlayerHand" to="UI" method="_on_PlayerHand_health_change"]
[connection signal="dead" from="CardController/EnemyHand" to="." method="_on_EnemyHand_dead"]
[connection signal="health_change" from="CardController/EnemyHand" to="UI" method="_on_EnemyHand_health_change"]
[connection signal="war_played" from="CardController/WarCards" to="." method="_on_WarCards_war_played"]
[connection signal="timeout" from="EndWarTimer" to="." method="_on_EndWarTimer_timeout"]
[editable path="CardController/EnemyHand"]
[editable path="CardController/Table"]
[editable path="CardController/WarCards"]