Got the tavern close to finished

This commit is contained in:
nc543 2024-05-27 13:05:36 -04:00
parent 4bf910f4ea
commit c643a5e90b
30 changed files with 1042 additions and 56 deletions

View File

@ -1,18 +1,16 @@
[gd_resource type="Resource" script_class="Spellbook" load_steps=8 format=3 uid="uid://bxtiv2esuer8v"]
[gd_resource type="Resource" script_class="Spellbook" load_steps=6 format=3 uid="uid://bxtiv2esuer8v"]
[ext_resource type="Script" path="res://Resources/spellbook.gd" id="1_t8h8m"]
[ext_resource type="Resource" uid="uid://7rne03vmayep" path="res://Resources/Spells/stoneWall.tres" id="2_5c5iu"]
[ext_resource type="Resource" uid="uid://dl51vjra873m1" path="res://Resources/Spells/poisonShield.tres" id="3_vmmfd"]
[ext_resource type="Resource" uid="uid://bmpu6k55bckdv" path="res://Resources/Spells/fireball.tres" id="4_kv0hs"]
[ext_resource type="Resource" uid="uid://c6mwbnutxm3vb" path="res://Resources/Spells/icyWind.tres" id="5_eymrm"]
[ext_resource type="Resource" uid="uid://dhrq8tkycy1f" path="res://Resources/Spells/acidSpray.tres" id="6_qtyjr"]
[ext_resource type="Resource" uid="uid://b3glmfhohyl68" path="res://Resources/Spells/iceSpear.tres" id="7_mjiod"]
[ext_resource type="Resource" uid="uid://1xbik4qndtkh" path="res://Resources/Spells/common/firebolt.tres" id="2_vcyj2"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/common/rockThrow.tres" id="3_i6ngl"]
[ext_resource type="Resource" uid="uid://dhrq8tkycy1f" path="res://Resources/Spells/common/acidSpray.tres" id="4_tvli1"]
[ext_resource type="Resource" uid="uid://dl51vjra873m1" path="res://Resources/Spells/rare/poisonShield.tres" id="5_483ph"]
[resource]
script = ExtResource("1_t8h8m")
name = "Old Book"
description = "An old spellbook you found on the side of the road"
spells = Array[Resource("res://Resources/spell.gd")]([ExtResource("2_5c5iu"), ExtResource("3_vmmfd"), ExtResource("4_kv0hs"), ExtResource("5_eymrm"), ExtResource("6_qtyjr"), ExtResource("7_mjiod")])
spells = Array[Resource("res://Resources/spell.gd")]([ExtResource("2_vcyj2"), ExtResource("3_i6ngl"), ExtResource("4_tvli1"), ExtResource("5_483ph"), null])
damageMod = 1.0
defenseMod = 1.0
element = 0

View File

@ -1,10 +1,10 @@
[gd_resource type="Resource" script_class="Spellbook" load_steps=6 format=3 uid="uid://g86hap7s43n8"]
[ext_resource type="Script" path="res://Resources/spellbook.gd" id="1_pn4te"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/rockThrow.tres" id="2_ofx8j"]
[ext_resource type="Resource" uid="uid://bmpu6k55bckdv" path="res://Resources/Spells/fireball.tres" id="3_brupg"]
[ext_resource type="Resource" uid="uid://1xbik4qndtkh" path="res://Resources/Spells/firebolt.tres" id="4_chcd4"]
[ext_resource type="Resource" uid="uid://c6mwbnutxm3vb" path="res://Resources/Spells/icyWind.tres" id="5_6ued7"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/common/rockThrow.tres" id="2_ofx8j"]
[ext_resource type="Resource" uid="uid://bmpu6k55bckdv" path="res://Resources/Spells/legendary/fireball.tres" id="3_brupg"]
[ext_resource type="Resource" uid="uid://1xbik4qndtkh" path="res://Resources/Spells/common/firebolt.tres" id="4_chcd4"]
[ext_resource type="Resource" uid="uid://c6mwbnutxm3vb" path="res://Resources/Spells/rare/icyWind.tres" id="5_6ued7"]
[resource]
script = ExtResource("1_pn4te")

View File

@ -2,7 +2,7 @@
[ext_resource type="Script" path="res://Scripts/Animations/rockThrowAnim.gd" id="1_owh0v"]
[ext_resource type="Texture2D" uid="uid://dwsd0hggrxbdq" path="res://Sprites/Animations/Rock Pack/Rocks 64x64 by Captainskeleto.png" id="2_addwy"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/rockThrow.tres" id="2_apcu7"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/common/rockThrow.tres" id="2_apcu7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wqvpx"]
atlas = ExtResource("2_addwy")

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=37 format=3 uid="uid://cme8avdi3w0sg"]
[gd_scene load_steps=39 format=3 uid="uid://cme8avdi3w0sg"]
[ext_resource type="Texture2D" uid="uid://s86ux2sxmlff" path="res://Sprites/Backgrounds/Castle Pack by CaptainSkeleto/castle pack5.png" id="1_7mj66"]
[ext_resource type="Theme" uid="uid://bh8kyg4qt8rt7" path="res://Themes/default.tres" id="1_wybs8"]
@ -25,7 +25,7 @@
_data = [Vector2(0, 0), 0.0, 3.2967, 0, 0, Vector2(0.226667, 1), -0.400951, -0.400951, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_ss1xk"]
[sub_resource type="CurveTexture" id="CurveTexture_rgmj0"]
curve = SubResource("Curve_4skk8")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_flsys"]
@ -37,10 +37,17 @@ linear_accel_min = 100.0
linear_accel_max = 100.0
scale_min = 0.5
scale_max = 0.75
scale_curve = SubResource("CurveTexture_ss1xk")
scale_curve = SubResource("CurveTexture_rgmj0")
anim_speed_min = 1.0
anim_speed_max = 1.0
[sub_resource type="Curve" id="Curve_qgu5x"]
_data = [Vector2(0, 0), 0.0, 3.2967, 0, 0, Vector2(0.226667, 1), -0.400951, -0.400951, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_ss1xk"]
curve = SubResource("Curve_qgu5x")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_gig2t"]
particle_flag_disable_z = true
emission_shape = 3

View File

@ -1,7 +1,293 @@
[gd_scene load_steps=3 format=3 uid="uid://b887yld2mj8se"]
[gd_scene load_steps=15 format=3 uid="uid://b887yld2mj8se"]
[ext_resource type="Script" path="res://Scripts/RoundFinishedIndicator.gd" id="1_l83ts"]
[ext_resource type="Theme" uid="uid://bh8kyg4qt8rt7" path="res://Themes/default.tres" id="2_30ddm"]
[ext_resource type="Texture2D" uid="uid://cakcdmbrg18pl" path="res://Sprites/UI/Edinnu_UI_asset_pack/Menu/Menu (10).png" id="3_cvdkd"]
[ext_resource type="Texture2D" uid="uid://nnexhrn82ya1" path="res://Sprites/UI/Edinnu_UI_asset_pack/Menu/Menu (12).png" id="4_bj0li"]
[ext_resource type="PackedScene" uid="uid://c2tdawo5x8o16" path="res://Scenes/UI/ui_particles.tscn" id="5_c8481"]
[ext_resource type="Texture2D" uid="uid://fwiid8drhoi" path="res://Sprites/Spells/Ice & Fire Spells Pack by Captainskeleto/Fire Spell Pack by Captainskeleto/Fire Spells/Fire Spell Pack58.png" id="6_tdot2"]
[sub_resource type="Animation" id="Animation_hmukc"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.427451, 0.427451, 0.427451, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Result:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Continue:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Result:size")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1152, 94)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Result:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 277)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("NewSpell/Label:position")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 724)]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("NewSpell/Icon:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-596, 257)]
}
tracks/7/type = "value"
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/path = NodePath("NewSpell/Name:position")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1222, 344)]
}
tracks/8/type = "value"
tracks/8/imported = false
tracks/8/enabled = true
tracks/8/path = NodePath("NewSpell/Rarity:position")
tracks/8/interp = 1
tracks/8/loop_wrap = true
tracks/8/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-1136, 379)]
}
tracks/9/type = "value"
tracks/9/imported = false
tracks/9/enabled = true
tracks/9/path = NodePath("NewSpell/Description:position")
tracks/9/interp = 1
tracks/9/loop_wrap = true
tracks/9/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1526, 414)]
}
[sub_resource type="Animation" id="Animation_voerv"]
resource_name = "continue"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Continue:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_wr5jg"]
resource_name = "newSpell"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Result:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 277), Vector2(0, 59)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("NewSpell/Label:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 687), Vector2(0, 191)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("NewSpell/Icon:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(1, 1.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-596, 257), Vector2(536, 257)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("NewSpell/Name:position")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(1, 1.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1222, 344), Vector2(0, 344)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("NewSpell/Rarity:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(1, 1.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-1136, 379), Vector2(0, 379)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("NewSpell/Description:position")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(1, 1.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1526, 414), Vector2(209, 414)]
}
[sub_resource type="Animation" id="Animation_fdksx"]
resource_name = "show"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.427451, 0.427451, 0.427451, 0), Color(0.427451, 0.427451, 0.427451, 0.784314)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Result:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Result:size")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1152, 94)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_lb3js"]
_data = {
"RESET": SubResource("Animation_hmukc"),
"continue": SubResource("Animation_voerv"),
"newSpell": SubResource("Animation_wr5jg"),
"show": SubResource("Animation_fdksx")
}
[sub_resource type="Curve" id="Curve_qgu5x"]
_data = [Vector2(0, 0), 0.0, 3.2967, 0, 0, Vector2(0.226667, 1), -0.400951, -0.400951, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_ss1xk"]
curve = SubResource("Curve_qgu5x")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_gpavg"]
particle_flag_disable_z = true
emission_shape = 3
emission_box_extents = Vector3(1, 1, 1)
gravity = Vector3(0, 0, 0)
linear_accel_min = 100.0
linear_accel_max = 100.0
scale_min = 0.5
scale_max = 0.75
scale_curve = SubResource("CurveTexture_ss1xk")
anim_speed_min = 1.0
anim_speed_max = 1.0
[node name="RoundFinishedIndicator" type="Control"]
layout_mode = 3
@ -11,7 +297,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_l83ts")
fadeDuration = 1.0
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
@ -23,17 +308,179 @@ grow_vertical = 2
color = Color(0.427451, 0.427451, 0.427451, 0)
[node name="Result" type="RichTextLabel" parent="."]
visible = false
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -47.0
offset_bottom = 47.0
offset_top = 277.0
offset_right = 1152.0
offset_bottom = 371.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 75
bbcode_enabled = true
text = "[center]Victory[/center]"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_lb3js")
}
autoplay = "RESET"
[node name="Continue" type="TextureButton" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -51.0
offset_top = -61.0
offset_right = 51.0
offset_bottom = -21.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(2, 2)
pivot_offset = Vector2(51, 20.25)
theme = ExtResource("2_30ddm")
texture_normal = ExtResource("3_cvdkd")
texture_pressed = ExtResource("4_bj0li")
[node name="RichTextLabel" type="RichTextLabel" parent="Continue"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -34.0
offset_top = -5.0
offset_right = 193.0
offset_bottom = 35.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.3, 0.3)
pivot_offset = Vector2(50.8333, 20)
mouse_filter = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_font_sizes/normal_font_size = 69
bbcode_enabled = true
text = "[center]Continue[/center]"
[node name="UIParticles" parent="Continue" instance=ExtResource("5_c8481")]
position = Vector2(50, 20)
process_material = SubResource("ParticleProcessMaterial_gpavg")
size = Vector3(50, 10, 0.1)
[node name="NewSpell" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="RichTextLabel" parent="NewSpell"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = 724.0
offset_right = 4608.0
offset_bottom = 784.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 50
bbcode_enabled = true
text = "[center]New Spell Unlocked[/center]"
[node name="Icon" type="TextureRect" parent="NewSpell"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -596.0
offset_top = 257.0
offset_right = -516.0
offset_bottom = 337.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("6_tdot2")
stretch_mode = 4
[node name="Name" type="RichTextLabel" parent="NewSpell"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = 1222.0
offset_top = 344.0
offset_right = 5830.0
offset_bottom = 386.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 35
bbcode_enabled = true
text = "[center]Name[/center]"
[node name="Rarity" type="RichTextLabel" parent="NewSpell"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -1136.0
offset_top = 379.0
offset_right = 3472.0
offset_bottom = 417.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 35
bbcode_enabled = true
text = "[center]Rarity[/center]"
[node name="Description" type="RichTextLabel" parent="NewSpell"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = 1526.0
offset_top = 414.0
offset_right = 5710.0
offset_bottom = 555.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_30ddm")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 30
bbcode_enabled = true
text = "[center]Description[/center]"
[connection signal="animation_finished" from="AnimationPlayer" to="." method="animFinished"]
[connection signal="mouse_entered" from="Continue" to="Continue/UIParticles" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Continue" to="Continue/UIParticles" method="_on_mouse_exited"]

View File

@ -0,0 +1,20 @@
[gd_scene load_steps=3 format=3 uid="uid://kekgims6hue4"]
[ext_resource type="Texture2D" uid="uid://fwiid8drhoi" path="res://Sprites/Spells/Ice & Fire Spells Pack by Captainskeleto/Fire Spell Pack by Captainskeleto/Fire Spells/Fire Spell Pack58.png" id="1_8oonb"]
[ext_resource type="Script" path="res://Scripts/SpellButton.gd" id="2_gi5ex"]
[node name="SpellButton" type="TextureButton"]
custom_minimum_size = Vector2(24, 24)
offset_right = 24.0
offset_bottom = 24.0
texture_normal = ExtResource("1_8oonb")
ignore_texture_size = true
stretch_mode = 4
script = ExtResource("2_gi5ex")
[node name="Icon" type="TextureRect" parent="."]
visible = false
custom_minimum_size = Vector2(24, 24)
layout_mode = 0
texture = ExtResource("1_8oonb")
expand_mode = 1

View File

@ -54,6 +54,3 @@ scale = Vector2(4, 4)
layer = 2
[node name="RoundFinishedIndicator" parent="CanvasLayer2" instance=ExtResource("7_2ugem")]
metadata/_edit_use_anchors_ = true
[editable path="CanvasLayer2/RoundFinishedIndicator"]

View File

@ -1,6 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://d2owoq5q27v8q"]
[gd_scene load_steps=14 format=3 uid="uid://d2owoq5q27v8q"]
[ext_resource type="Script" path="res://Scripts/data.gd" id="1_m1o6d"]
[ext_resource type="Resource" uid="uid://dhrq8tkycy1f" path="res://Resources/Spells/common/acidSpray.tres" id="2_rphxk"]
[ext_resource type="Resource" uid="uid://1xbik4qndtkh" path="res://Resources/Spells/common/firebolt.tres" id="3_qjws8"]
[ext_resource type="Resource" uid="uid://b3glmfhohyl68" path="res://Resources/Spells/common/iceSpear.tres" id="4_facpx"]
[ext_resource type="Resource" uid="uid://opiwxkwnw2yp" path="res://Resources/Spells/common/poisonSting.tres" id="5_gakij"]
[ext_resource type="Resource" uid="uid://dl6nv6lp460n3" path="res://Resources/Spells/common/rockThrow.tres" id="6_jp3r2"]
[ext_resource type="Resource" uid="uid://bhihoutcyqxby" path="res://Resources/Spells/godlike/duckSwarm.tres" id="7_5btpk"]
[ext_resource type="Resource" uid="uid://bmpu6k55bckdv" path="res://Resources/Spells/legendary/fireball.tres" id="8_vogb5"]
[ext_resource type="Resource" uid="uid://7rne03vmayep" path="res://Resources/Spells/legendary/stoneWall.tres" id="9_bfp7p"]
[ext_resource type="Resource" uid="uid://c6mwbnutxm3vb" path="res://Resources/Spells/rare/icyWind.tres" id="10_t1kk2"]
[ext_resource type="Resource" uid="uid://dl51vjra873m1" path="res://Resources/Spells/rare/poisonShield.tres" id="11_mohfk"]
[ext_resource type="Resource" uid="uid://csq4f4vhgymg6" path="res://Resources/Spells/rare/sandstorm.tres" id="12_wcscn"]
[ext_resource type="Resource" uid="uid://nd0s6k17wswc" path="res://Resources/Spells/rare/wallOfFire.tres" id="13_1ssxl"]
[node name="Data" type="Node"]
script = ExtResource("1_m1o6d")
lockedSpells = Array[Resource("res://Resources/spell.gd")]([ExtResource("5_gakij"), ExtResource("7_5btpk"), ExtResource("8_vogb5"), ExtResource("9_bfp7p"), ExtResource("10_t1kk2"), ExtResource("12_wcscn"), ExtResource("13_1ssxl")])
unlockedSpells = Array[Resource("res://Resources/spell.gd")]([ExtResource("3_qjws8"), ExtResource("6_jp3r2"), ExtResource("2_rphxk"), ExtResource("11_mohfk"), ExtResource("4_facpx")])

View File

@ -1,6 +1,34 @@
[gd_scene load_steps=2 format=3 uid="uid://drhhwv5jh0n7k"]
[gd_scene load_steps=13 format=3 uid="uid://drhhwv5jh0n7k"]
[ext_resource type="Texture2D" uid="uid://bp2htek76abbm" path="res://Sprites/Backgrounds/Mountain Pack by CaptainSkeleto/Mountain Pack5.png" id="1_b0ksa"]
[ext_resource type="Script" path="res://Scripts/tavern.gd" id="1_cj78a"]
[ext_resource type="Texture2D" uid="uid://bek056o101dck" path="res://Sprites/UI/Edinnu_UI_asset_pack/Dialogue_plates/Plate (63).png" id="2_gpcqf"]
[ext_resource type="Texture2D" uid="uid://fwiid8drhoi" path="res://Sprites/Spells/Ice & Fire Spells Pack by Captainskeleto/Fire Spell Pack by Captainskeleto/Fire Spells/Fire Spell Pack58.png" id="3_yfm8a"]
[ext_resource type="Theme" uid="uid://bh8kyg4qt8rt7" path="res://Themes/default.tres" id="4_idn88"]
[ext_resource type="Texture2D" uid="uid://dvmf31ndkhd0r" path="res://Sprites/UI/Edinnu_UI_asset_pack/Dialogue_plates/Plate (27).png" id="4_ktvxa"]
[ext_resource type="Texture2D" uid="uid://cakcdmbrg18pl" path="res://Sprites/UI/Edinnu_UI_asset_pack/Menu/Menu (10).png" id="6_gib8n"]
[ext_resource type="Texture2D" uid="uid://nnexhrn82ya1" path="res://Sprites/UI/Edinnu_UI_asset_pack/Menu/Menu (12).png" id="7_aipua"]
[ext_resource type="PackedScene" uid="uid://c2tdawo5x8o16" path="res://Scenes/UI/ui_particles.tscn" id="8_2ee6o"]
[sub_resource type="Curve" id="Curve_mel5c"]
_data = [Vector2(0, 0), 0.0, 3.2967, 0, 0, Vector2(0.226667, 1), -0.400951, -0.400951, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_yknv7"]
curve = SubResource("Curve_mel5c")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_lpmqh"]
particle_flag_disable_z = true
emission_shape = 3
emission_box_extents = Vector3(1, 1, 1)
gravity = Vector3(0, 0, 0)
linear_accel_min = 100.0
linear_accel_max = 100.0
scale_min = 0.5
scale_max = 0.75
scale_curve = SubResource("CurveTexture_yknv7")
anim_speed_min = 1.0
anim_speed_max = 1.0
[node name="Tavern" type="Control"]
layout_mode = 3
@ -9,6 +37,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cj78a")
[node name="Background" type="TextureRect" parent="."]
layout_mode = 1
@ -21,10 +50,383 @@ texture = ExtResource("1_b0ksa")
expand_mode = 2
stretch_mode = 6
[node name="HBoxContainer" type="HBoxContainer" parent="."]
[node name="NinePatchRect" type="NinePatchRect" parent="."]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -80.0
offset_right = 144.0
offset_bottom = 81.0
grow_vertical = 2
scale = Vector2(4, 4)
pivot_offset = Vector2(0, 80.625)
texture = ExtResource("2_gpcqf")
patch_margin_left = 8
patch_margin_top = 12
patch_margin_right = 8
patch_margin_bottom = 12
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
[node name="zone" type="Control" parent="NinePatchRect"]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 7.0
offset_top = 12.0
offset_right = -7.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 2
[node name="Icon" type="TextureRect" parent="NinePatchRect/zone"]
layout_mode = 1
offset_right = 32.0
offset_bottom = 32.0
texture = ExtResource("3_yfm8a")
stretch_mode = 4
[node name="NinePatchRect" type="NinePatchRect" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 33.0
offset_right = 1.0
offset_bottom = 32.0
grow_horizontal = 2
texture = ExtResource("4_ktvxa")
region_rect = Rect2(4, 4, 286, 72)
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 1
patch_margin_bottom = 1
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
[node name="Name" type="RichTextLabel" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 33.0
offset_bottom = 16.0
grow_horizontal = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 1
theme_override_font_sizes/normal_font_size = 15
bbcode_enabled = true
text = "[center]Name[/center]"
[node name="Rarity" type="RichTextLabel" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 32.0
offset_top = 14.0
offset_bottom = 31.0
grow_horizontal = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 1
theme_override_font_sizes/normal_font_size = 15
bbcode_enabled = true
text = "[center]Rarity[/center]"
[node name="NinePatchRect2" type="NinePatchRect" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -35.5
offset_bottom = -1.5
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_ktvxa")
region_rect = Rect2(4, 4, 286, 72)
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 1
patch_margin_bottom = 1
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
[node name="Description" type="RichTextLabel" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -34.5
offset_bottom = -2.5
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 0
theme_override_font_sizes/normal_font_size = 10
bbcode_enabled = true
text = "[center]Description[/center]"
[node name="NinePatchRect3" type="NinePatchRect" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -69.0
grow_horizontal = 2
grow_vertical = 0
texture = ExtResource("4_ktvxa")
region_rect = Rect2(4, 4, 286, 72)
patch_margin_left = 1
patch_margin_top = 1
patch_margin_right = 1
patch_margin_bottom = 1
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
[node name="Damage" type="RichTextLabel" parent="NinePatchRect/zone"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = 2.0
offset_top = 1.5
offset_right = -1.0
offset_bottom = 68.5
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0.847059, 0.341176, 0.423529, 0.956863)
theme_override_constants/outline_size = 0
theme_override_font_sizes/normal_font_size = 10
bbcode_enabled = true
text = "Damage: 1
Backfire Strength: 1
Fire Resistance: 60%
Ice Resistance: 60%
Poison Resistance: 60%
Stone Resistance: 60%"
[node name="NinePatchRect2" type="NinePatchRect" parent="."]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -144.0
offset_top = -80.0
offset_bottom = 18.0
grow_horizontal = 0
grow_vertical = 2
scale = Vector2(4, 4)
pivot_offset = Vector2(144, 80.5938)
texture = ExtResource("2_gpcqf")
patch_margin_left = 8
patch_margin_top = 12
patch_margin_right = 8
patch_margin_bottom = 12
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
[node name="GridContainer" type="GridContainer" parent="NinePatchRect2"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 7.0
offset_top = 11.0
offset_right = -7.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/h_separation = 3
columns = 5
[node name="NinePatchRect3" type="NinePatchRect" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -144.0
offset_top = -19.0
offset_bottom = 28.0
grow_horizontal = 0
grow_vertical = 0
scale = Vector2(4, 4)
pivot_offset = Vector2(144, 80.5938)
texture = ExtResource("2_gpcqf")
patch_margin_left = 8
patch_margin_top = 12
patch_margin_right = 8
patch_margin_bottom = 12
axis_stretch_horizontal = 2
axis_stretch_vertical = 2
[node name="GridContainer" type="GridContainer" parent="NinePatchRect3"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 6.0
offset_top = 12.0
offset_right = -6.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/h_separation = 3
columns = 5
[node name="Choice" type="TextureButton" parent="."]
modulate = Color(1, 0.972549, 0.811765, 1)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -540.0
offset_top = -53.0
offset_right = -438.0
offset_bottom = -13.0
grow_horizontal = 0
grow_vertical = 0
scale = Vector2(1.5, 1.5)
pivot_offset = Vector2(51, 20)
theme = ExtResource("4_idn88")
texture_normal = ExtResource("6_gib8n")
texture_pressed = ExtResource("7_aipua")
[node name="RichTextLabel" type="RichTextLabel" parent="Choice"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -12.0
offset_top = -5.5
offset_right = 70.0
offset_bottom = 34.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.3, 0.3)
pivot_offset = Vector2(50.8333, 20)
mouse_filter = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_font_sizes/normal_font_size = 69
bbcode_enabled = true
text = "[center]Select[/center]"
[node name="UIParticles" parent="Choice" instance=ExtResource("8_2ee6o")]
position = Vector2(50, 20)
process_material = SubResource("ParticleProcessMaterial_lpmqh")
size = Vector3(50, 10, 0.1)
[node name="Continue" type="TextureButton" parent="."]
modulate = Color(1, 0.972549, 0.811765, 1)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -140.0
offset_top = -53.0
offset_right = -38.0
offset_bottom = -13.0
grow_horizontal = 0
grow_vertical = 0
scale = Vector2(1.5, 1.5)
pivot_offset = Vector2(51, 20)
theme = ExtResource("4_idn88")
texture_normal = ExtResource("6_gib8n")
texture_pressed = ExtResource("7_aipua")
[node name="RichTextLabel" type="RichTextLabel" parent="Continue"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -30.0
offset_top = -5.0
offset_right = 173.0
offset_bottom = 35.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.3, 0.3)
pivot_offset = Vector2(50.8333, 20)
mouse_filter = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_font_sizes/normal_font_size = 69
bbcode_enabled = true
text = "[center]Continue[/center]"
[node name="UIParticles" parent="Continue" instance=ExtResource("8_2ee6o")]
position = Vector2(50, 20)
process_material = SubResource("ParticleProcessMaterial_lpmqh")
size = Vector3(50, 10, 0.1)
[node name="MainMenu" type="TextureButton" parent="."]
modulate = Color(1, 0.972549, 0.811765, 1)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -342.0
offset_top = -53.0
offset_right = -240.0
offset_bottom = -13.0
grow_horizontal = 0
grow_vertical = 0
scale = Vector2(1.5, 1.5)
pivot_offset = Vector2(51, 20)
theme = ExtResource("4_idn88")
texture_normal = ExtResource("6_gib8n")
texture_pressed = ExtResource("7_aipua")
[node name="RichTextLabel" type="RichTextLabel" parent="MainMenu"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -30.0
offset_top = -5.0
offset_right = 173.0
offset_bottom = 35.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.3, 0.3)
pivot_offset = Vector2(50.8333, 20)
mouse_filter = 2
theme = ExtResource("4_idn88")
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_font_sizes/normal_font_size = 69
bbcode_enabled = true
text = "[center]Main Menu[/center]"
[node name="UIParticles" parent="MainMenu" instance=ExtResource("8_2ee6o")]
position = Vector2(50, 20)
process_material = SubResource("ParticleProcessMaterial_lpmqh")
size = Vector3(50, 10, 0.1)
[connection signal="mouse_entered" from="Choice" to="Choice/UIParticles" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Choice" to="Choice/UIParticles" method="_on_mouse_exited"]
[connection signal="mouse_entered" from="Continue" to="Continue/UIParticles" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Continue" to="Continue/UIParticles" method="_on_mouse_exited"]
[connection signal="mouse_entered" from="MainMenu" to="MainMenu/UIParticles" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="MainMenu" to="MainMenu/UIParticles" method="_on_mouse_exited"]

View File

@ -1,26 +1,45 @@
extends Control
@export var fadeDuration: float = 0.5
@export var fadeMax: float = 0.65
@onready var backdrop: ColorRect = $ColorRect
@onready var result: RichTextLabel = $Result
@onready var animationPlayer: AnimationPlayer = $AnimationPlayer
@onready var data: Data = $/root/Root/Data
@onready var icon = $NewSpell/Icon
@onready var nam = $NewSpell/Name
@onready var rarity = $NewSpell/Rarity
@onready var description = $NewSpell/Description
var timer: float = 0
var won: bool
# Called when the node enters the scene tree for the first time.
func _ready():
data.player.connect("died", displayResult)
data.opponent.connect("died", displayResult)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if (!data.playing):
timer = clampf(0, 1, timer + (delta / fadeDuration))
backdrop.color.a = lerpf(0, fadeMax, timer)
func displayResult(victory: bool):
if (victory): result.text = "[center]Victory[/center]"
else: result.text = "[center]Defeat[/center]"
result.show()
won = victory
if (victory):
result.text = "[center]Victory[/center]"
else:
result.text = "[center]Defeat[/center]"
animationPlayer.play("show")
func animFinished(s: String):
if (won):
won = false
var spell: Spell = data.getNewSpell()
if (spell != null):
print("Spell Selected: %s" % spell.name)
icon.texture = spell.icon
nam.text = "[center]%s[/center]" % spell.name
rarity.text = "[center]%s[/center]" % data.Rarity.find_key(spell.rarity)
description.text = "[center]%s[/center]" % spell.description
animationPlayer.play("newSpell")
else:
animationPlayer.play("continue")
elif (s != "continue" && s != "RESET"):
animationPlayer.play("continue")

12
Scripts/SpellButton.gd Normal file
View File

@ -0,0 +1,12 @@
class_name SpellButton extends TextureButton
signal spellClicked(spellButton: SpellButton)
@export var spell: Spell
# Called when the node enters the scene tree for the first time.
func _ready():
if (spell != null): texture_normal = spell.icon
func _pressed():
spellClicked.emit(self)

View File

@ -16,9 +16,10 @@ extends Control
@onready var musicPlayer: MusicPlayer = $/root/Root/MusicPlayer
@export var arena: String
@export var tavern: String = "res://Scenes/tavern.tscn"
func _on_play_pressed():
var a: Node2D = load(arena).instantiate()
var a: Tavern = load(tavern).instantiate()
$/root/Root.add_child(a)
musicPlayer.setLoc(Data.Location.ARENA)
$/root/Root/MainMenu.queue_free()

View File

@ -13,5 +13,3 @@ func _process(delta):
func combatantDied(victory: bool):
data.playing = false
if (victory): print("Victory")
else: print("Loss")

View File

@ -114,6 +114,7 @@ func aiCast(chance: int):
failCast()
func alterHealth(change: float, stun: bool, element: Data.Element) -> void:
if (!data.playing): return
for spel in defending:
change *= spel.blockStrength[element]
if (change == 0): return

View File

@ -27,7 +27,7 @@ enum Rarity{
COMMON,
RARE,
LEGENDARY,
GAMER
GODLIKE
}
@export var spellbook: Spellbook
@ -37,3 +37,33 @@ enum Rarity{
@export var opponent: Combatant
@export var loc: Location = Location.MAINMENU
@export var playing: bool = false
@export var lockedSpells: Array[Spell]
@export var unlockedSpells: Array[Spell]
@export var commonChance: int = 70
@export var rareChance: int = 24
@export var legendaryChance: int = 5
@export var godlikeChance: int = 1
func getNewSpell() -> Spell:
var num: int = randi_range(0, 99)
var rar: Rarity
if (num < commonChance):
rar = Rarity.COMMON
elif (num < rareChance):
rar = Rarity.RARE
elif (num < legendaryChance):
rar = Rarity.LEGENDARY
else:
rar = Rarity.GODLIKE
var options: Array[Spell] = lockedSpells.filter(func(spel): return spel.rarity == rar)
var count: int = 1
while (options.size() == 0):
rar = (int(rar) + 1) as Rarity
if (int(rar) >= 4): rar = 0
count += 1
if (count >= 4): return null
options = lockedSpells.filter(func(spel): return spel.difficulty == rar)
var spell: Spell = options[randi_range(0, options.size() - 1)]
lockedSpells.erase(spell)
unlockedSpells.append(spell)
return spell

41
Scripts/tavern.gd Normal file
View File

@ -0,0 +1,41 @@
class_name Tavern extends Control
@onready var data: Data = $/root/Root/Data
@onready var selected: GridContainer = $NinePatchRect3/GridContainer
@onready var library: GridContainer = $NinePatchRect2/GridContainer
@onready var zone: Control = $NinePatchRect/zone
@onready var icon = $NinePatchRect/zone/Icon
@onready var nam = $NinePatchRect/zone/Name
@onready var rarity = $NinePatchRect/zone/Rarity
@onready var description = $NinePatchRect/zone/Description
@onready var damage = $NinePatchRect/zone/Damage
@onready var buttonBase: PackedScene = load("res://Scenes/UI/spellButton.tscn")
var selectedButton: SpellButton
# Called when the node enters the scene tree for the first time.
func _ready():
var spells: Array[Spell] = data.unlockedSpells.duplicate()
for spell: Spell in data.spellbook.spells:
if (spell == null): continue
spells.erase(spell)
var button: SpellButton = buttonBase.instantiate()
button.spell = spell
button.connect("spellClicked", displaySpell)
selected.add_child(button)
for spell: Spell in spells:
var button: SpellButton = buttonBase.instantiate()
button.spell = spell
button.connect("spellClicked", displaySpell)
library.add_child(button)
func displaySpell(spellButton: SpellButton):
zone.show()
selectedButton = spellButton
icon.texture = selectedButton.spell.icon
nam.text = "[center]%s[/center]" % selectedButton.spell.name
rarity.text = "[center]%s[/center]" % data.Rarity.find_key(selectedButton.spell.rarity)
description.text = "[center]%s[/center]" % selectedButton.spell.description
var text: String = "Damage: %s\nBackfire Strength: %s\nFire Resistance: %s\nIce Resistance: %s\nPoison Resistance: %s\nStone Resistance: %s"
var resistances: Dictionary = selectedButton.spell.blockStrength
damage.text = text % [selectedButton.spell.damage, selectedButton.spell.backfireStrength, 100 - resistances[Data.Element.FIRE] * 100, 100 - resistances[Data.Element.ICE] * 100, 100 - resistances[Data.Element.POISON] * 100, 100 - resistances[Data.Element.STONE] * 100]

View File

@ -9,7 +9,7 @@
[ext_resource type="Texture2D" uid="uid://dunedrjwjxgea" path="res://Sprites/UI/Edinnu_UI_asset_pack/Target/Target (10).png" id="6_4cx20"]
[ext_resource type="FontFile" uid="uid://bhggfnolqg5hu" path="res://Fonts/breathe_fire/Breathe Fire.otf" id="9_yxmfa"]
[sub_resource type="Image" id="Image_vcd18"]
[sub_resource type="Image" id="Image_5edks"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 35, 255, 255, 255, 153, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 190, 255, 255, 255, 152, 255, 255, 255, 33, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 153, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 151, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 237, 237, 237, 195, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 190, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 177, 177, 177, 209, 37, 37, 37, 252, 178, 178, 178, 209, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 176, 176, 176, 209, 32, 32, 32, 254, 26, 26, 26, 255, 84, 84, 84, 235, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 176, 176, 176, 209, 32, 32, 32, 254, 26, 26, 26, 255, 78, 78, 78, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 253, 253, 253, 192, 222, 222, 222, 198, 255, 255, 255, 191, 255, 255, 255, 191, 175, 175, 175, 210, 32, 32, 32, 254, 26, 26, 26, 255, 79, 79, 79, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 253, 253, 253, 192, 90, 90, 90, 234, 45, 45, 45, 249, 212, 212, 212, 200, 174, 174, 174, 210, 32, 32, 32, 254, 26, 26, 26, 255, 79, 79, 79, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 232, 232, 232, 196, 54, 54, 54, 246, 26, 26, 26, 255, 43, 43, 43, 250, 32, 32, 32, 254, 26, 26, 26, 255, 81, 81, 81, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 226, 226, 226, 197, 54, 54, 54, 246, 26, 26, 26, 255, 26, 26, 26, 255, 81, 81, 81, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 226, 226, 226, 197, 54, 54, 54, 246, 81, 81, 81, 236, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 230, 230, 230, 197, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 189, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 152, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 150, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 33, 255, 255, 255, 151, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 189, 255, 255, 255, 150, 255, 255, 255, 32, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -19,9 +19,9 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_pqkb6"]
image = SubResource("Image_vcd18")
image = SubResource("Image_5edks")
[sub_resource type="Image" id="Image_xpd8x"]
[sub_resource type="Image" id="Image_jy1ha"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 13, 255, 255, 255, 96, 255, 255, 255, 136, 255, 255, 255, 173, 255, 255, 255, 173, 255, 255, 255, 136, 255, 255, 255, 95, 255, 255, 255, 11, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 56, 255, 255, 255, 171, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 168, 255, 255, 255, 51, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 56, 255, 255, 255, 191, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 190, 255, 255, 255, 50, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 12, 255, 255, 255, 171, 198, 198, 198, 255, 198, 198, 198, 255, 176, 176, 176, 255, 81, 81, 81, 255, 43, 43, 43, 255, 43, 43, 43, 255, 83, 83, 83, 255, 177, 177, 177, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 168, 255, 255, 255, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 97, 198, 198, 198, 255, 198, 198, 198, 255, 176, 176, 176, 255, 37, 37, 37, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 39, 39, 39, 255, 179, 179, 179, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 96, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 137, 198, 198, 198, 255, 198, 198, 198, 255, 81, 81, 81, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 86, 86, 86, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 154, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 174, 198, 198, 198, 255, 198, 198, 198, 255, 43, 43, 43, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 43, 43, 43, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 180, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 173, 198, 198, 198, 255, 198, 198, 198, 255, 43, 43, 43, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 44, 44, 44, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 180, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 136, 198, 198, 198, 255, 198, 198, 198, 255, 83, 83, 83, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 88, 88, 88, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 152, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 95, 198, 198, 198, 255, 198, 198, 198, 255, 178, 178, 178, 255, 39, 39, 39, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 26, 26, 26, 255, 42, 42, 42, 255, 181, 181, 181, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 11, 255, 255, 255, 169, 198, 198, 198, 255, 198, 198, 198, 255, 179, 179, 179, 255, 86, 86, 86, 255, 43, 43, 43, 255, 44, 44, 44, 255, 88, 88, 88, 255, 181, 181, 181, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 165, 255, 255, 255, 9, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 52, 255, 255, 255, 190, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 189, 255, 255, 255, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 50, 255, 255, 255, 168, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 198, 198, 198, 255, 255, 255, 255, 165, 255, 255, 255, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 10, 255, 255, 255, 96, 255, 255, 255, 154, 255, 255, 255, 180, 255, 255, 255, 180, 255, 255, 255, 152, 255, 255, 255, 94, 255, 255, 255, 9, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -31,9 +31,9 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_sogt1"]
image = SubResource("Image_xpd8x")
image = SubResource("Image_jy1ha")
[sub_resource type="Image" id="Image_3ko6q"]
[sub_resource type="Image" id="Image_u8r7d"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 12, 26, 26, 26, 67, 26, 26, 26, 105, 27, 27, 27, 122, 27, 27, 27, 122, 26, 26, 26, 105, 27, 27, 27, 66, 46, 46, 46, 11, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 29, 29, 29, 44, 27, 27, 27, 122, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 122, 30, 30, 30, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 29, 29, 29, 44, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 30, 30, 30, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 12, 27, 27, 27, 122, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 121, 46, 46, 46, 11, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 67, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 65, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 105, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 104, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 122, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 122, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 122, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 121, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 105, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 103, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 66, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 65, 255, 255, 255, 0, 255, 255, 255, 0, 46, 46, 46, 11, 27, 27, 27, 122, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 121, 51, 51, 51, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 30, 30, 30, 42, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 31, 31, 31, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 30, 30, 30, 42, 27, 27, 27, 121, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 121, 31, 31, 31, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 46, 46, 46, 11, 27, 27, 27, 65, 27, 27, 27, 104, 27, 27, 27, 122, 27, 27, 27, 121, 27, 27, 27, 103, 27, 27, 27, 65, 51, 51, 51, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -43,9 +43,9 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_bym57"]
image = SubResource("Image_3ko6q")
image = SubResource("Image_u8r7d")
[sub_resource type="Image" id="Image_v0x32"]
[sub_resource type="Image" id="Image_44jqn"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 33, 33, 33, 23, 27, 27, 27, 103, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 27, 27, 27, 102, 34, 34, 34, 22, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 103, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 101, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 102, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 28, 28, 28, 100, 255, 255, 255, 0, 255, 255, 255, 0, 34, 34, 34, 22, 27, 27, 27, 101, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 28, 28, 28, 100, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -55,7 +55,7 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_n26h3"]
image = SubResource("Image_v0x32")
image = SubResource("Image_44jqn")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_t8gt0"]
content_margin_left = 4.0
@ -84,7 +84,7 @@ expand_margin_top = 2.0
expand_margin_right = 2.0
expand_margin_bottom = 2.0
[sub_resource type="Image" id="Image_yrxij"]
[sub_resource type="Image" id="Image_8qcpq"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 179, 179, 179, 30, 178, 178, 178, 103, 178, 178, 178, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 173, 173, 173, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 181, 181, 181, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 179, 179, 179, 30, 178, 178, 178, 103, 178, 178, 178, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -94,9 +94,9 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_mqdbu"]
image = SubResource("Image_yrxij")
image = SubResource("Image_8qcpq")
[sub_resource type="Image" id="Image_710u6"]
[sub_resource type="Image" id="Image_7m60e"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 178, 178, 178, 46, 178, 178, 178, 103, 176, 176, 176, 29, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 181, 181, 181, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 173, 173, 173, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 178, 178, 178, 46, 178, 178, 178, 103, 179, 179, 179, 30, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
@ -106,7 +106,7 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_2lr15"]
image = SubResource("Image_710u6")
image = SubResource("Image_7m60e")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m1ydj"]
content_margin_left = 4.0

View File

@ -17,7 +17,6 @@ config/icon="res://icon.svg"
[display]
window/size/mode=3
window/stretch/mode="canvas_items"
window/stretch/aspect="keep_height"
mouse_cursor/custom_image_hotspot=Vector2(64, 128)