2021-02-18 18:06:17 +01:00
|
|
|
[gd_scene load_steps=13 format=2]
|
2020-10-13 13:04:12 +02:00
|
|
|
|
2020-10-26 19:15:47 +01:00
|
|
|
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
|
|
|
|
[ext_resource path="res://nodes/blob.svg" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://scenes/card.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://sounds/swish.wav" type="AudioStream" id=4]
|
|
|
|
[ext_resource path="res://sounds/swoosh.wav" type="AudioStream" id=5]
|
|
|
|
[ext_resource path="res://sounds/poof.wav" type="AudioStream" id=6]
|
2020-11-10 23:17:48 +01:00
|
|
|
[ext_resource path="res://fonts/small.tres" type="DynamicFont" id=7]
|
2020-10-26 19:15:47 +01:00
|
|
|
|
2020-10-14 00:27:37 +02:00
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
|
|
bg_color = Color( 0.45098, 0.584314, 0.843137, 1 )
|
2020-10-14 00:04:47 +02:00
|
|
|
border_color = Color( 0.0627451, 0.141176, 0.176471, 1 )
|
|
|
|
corner_radius_top_left = 10
|
|
|
|
corner_radius_top_right = 10
|
|
|
|
corner_radius_bottom_right = 10
|
|
|
|
corner_radius_bottom_left = 10
|
|
|
|
shadow_color = Color( 0, 0, 0, 0.392157 )
|
|
|
|
shadow_size = 4
|
|
|
|
shadow_offset = Vector2( -2, 2 )
|
|
|
|
|
2021-02-18 18:06:17 +01:00
|
|
|
[sub_resource type="Shader" id=2]
|
|
|
|
resource_local_to_scene = true
|
|
|
|
code = "shader_type canvas_item;
|
|
|
|
|
|
|
|
uniform float hovered;
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
vec2 center = vec2(0.5, 0.5);
|
|
|
|
float dx = abs(UV.x - center.x);
|
|
|
|
float dy = abs(UV.y - center.y);
|
|
|
|
float d = distance(UV, center);
|
|
|
|
COLOR = vec4(0.9, 0.5, 0.5, smoothstep(0.5,0.2 + hovered*0.1,d));
|
|
|
|
}
|
|
|
|
"
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id=3]
|
|
|
|
resource_local_to_scene = true
|
|
|
|
shader = SubResource( 2 )
|
|
|
|
shader_param/hovered = 0.0
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
2020-10-13 13:04:12 +02:00
|
|
|
extents = Vector2( 105.74, 143.46 )
|
|
|
|
|
2021-02-18 18:06:17 +01:00
|
|
|
[sub_resource type="StyleBoxFlat" id=5]
|
2020-10-14 00:27:37 +02:00
|
|
|
bg_color = Color( 1, 1, 1, 0.243137 )
|
|
|
|
corner_radius_top_left = 10
|
|
|
|
corner_radius_top_right = 10
|
|
|
|
corner_radius_bottom_right = 10
|
|
|
|
corner_radius_bottom_left = 10
|
|
|
|
|
2020-10-13 18:13:42 +02:00
|
|
|
[node name="Card" type="Node2D" groups=[
|
|
|
|
"cards",
|
|
|
|
]]
|
2020-10-26 19:15:47 +01:00
|
|
|
script = ExtResource( 3 )
|
2020-10-13 13:04:12 +02:00
|
|
|
|
2020-10-14 00:04:47 +02:00
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
|
|
margin_left = -105.0
|
|
|
|
margin_top = -291.0
|
|
|
|
margin_right = 104.0
|
|
|
|
margin_bottom = -2.0
|
|
|
|
mouse_filter = 2
|
2020-10-14 00:27:37 +02:00
|
|
|
custom_styles/panel = SubResource( 1 )
|
2020-10-14 00:04:47 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-02-18 18:06:17 +01:00
|
|
|
[node name="Glow" type="Sprite" parent="Panel"]
|
|
|
|
modulate = Color( 1, 1, 1, 0.643137 )
|
|
|
|
show_behind_parent = true
|
|
|
|
material = SubResource( 3 )
|
|
|
|
position = Vector2( 101.782, 146.207 )
|
|
|
|
scale = Vector2( 5.03758, 6.05786 )
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
|
2020-10-13 14:16:36 +02:00
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
2020-10-14 00:04:47 +02:00
|
|
|
visible = false
|
2020-10-13 14:16:36 +02:00
|
|
|
margin_left = -103.0
|
2020-10-13 18:58:30 +02:00
|
|
|
margin_top = -290.336
|
2020-10-13 14:16:36 +02:00
|
|
|
margin_right = 103.0
|
2020-10-13 18:58:30 +02:00
|
|
|
margin_bottom = -1.33582
|
2020-10-13 14:16:36 +02:00
|
|
|
mouse_filter = 2
|
|
|
|
color = Color( 0.105882, 0.67451, 0.847059, 1 )
|
2020-10-13 13:04:12 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-10-13 14:16:36 +02:00
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
2020-10-13 18:58:30 +02:00
|
|
|
position = Vector2( 0, -145.336 )
|
2020-10-13 14:16:36 +02:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
2021-01-14 11:26:21 +01:00
|
|
|
position = Vector2( -6.10352e-05, -0.641296 )
|
2021-02-18 18:06:17 +01:00
|
|
|
shape = SubResource( 4 )
|
2020-10-13 14:16:36 +02:00
|
|
|
|
2021-02-18 16:47:39 +01:00
|
|
|
[node name="Label" type="RichTextLabel" parent="."]
|
|
|
|
margin_left = -91.0
|
2020-10-27 13:14:07 +01:00
|
|
|
margin_top = -279.0
|
2021-02-18 16:47:39 +01:00
|
|
|
margin_right = 95.0
|
2021-01-14 11:26:21 +01:00
|
|
|
margin_bottom = -189.0
|
2021-02-18 16:47:39 +01:00
|
|
|
mouse_filter = 2
|
|
|
|
custom_colors/default_color = Color( 0, 0, 0, 1 )
|
|
|
|
bbcode_enabled = true
|
2020-10-14 00:27:37 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ColorRect2" type="Panel" parent="."]
|
|
|
|
margin_left = -97.0
|
2021-01-14 11:26:21 +01:00
|
|
|
margin_top = -101.0
|
2020-10-14 00:27:37 +02:00
|
|
|
margin_right = 94.0
|
|
|
|
margin_bottom = -10.0
|
|
|
|
mouse_filter = 2
|
2021-02-18 18:06:17 +01:00
|
|
|
custom_styles/panel = SubResource( 5 )
|
2020-10-14 00:46:41 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-10-14 00:27:37 +02:00
|
|
|
|
|
|
|
[node name="Description" type="Label" parent="."]
|
|
|
|
margin_left = -92.0
|
2021-01-14 11:26:21 +01:00
|
|
|
margin_top = -98.0
|
2020-11-10 23:17:48 +01:00
|
|
|
margin_right = 90.0
|
|
|
|
margin_bottom = -14.0
|
|
|
|
custom_fonts/font = ExtResource( 7 )
|
2020-10-13 14:16:36 +02:00
|
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
2020-10-14 00:27:37 +02:00
|
|
|
text = "Description"
|
2020-10-13 18:13:42 +02:00
|
|
|
autowrap = true
|
2020-10-13 14:16:36 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-10-15 15:22:38 +02:00
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
2020-10-15 16:11:02 +02:00
|
|
|
visible = false
|
2020-10-15 15:22:38 +02:00
|
|
|
position = Vector2( -103.288, -287.778 )
|
|
|
|
scale = Vector2( 0.542341, 0.542341 )
|
2020-10-26 19:15:47 +01:00
|
|
|
texture = ExtResource( 2 )
|
2020-10-15 15:22:38 +02:00
|
|
|
|
|
|
|
[node name="Energy" type="Label" parent="Sprite"]
|
|
|
|
margin_left = -51.1637
|
|
|
|
margin_top = -47.4558
|
|
|
|
margin_right = -17.1637
|
|
|
|
margin_bottom = -16.4558
|
|
|
|
rect_scale = Vector2( 3, 3 )
|
2020-10-26 19:15:47 +01:00
|
|
|
custom_fonts/font = ExtResource( 1 )
|
2020-10-15 15:22:38 +02:00
|
|
|
text = "0"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-10-22 16:19:22 +02:00
|
|
|
|
|
|
|
[node name="PickupSound" type="AudioStreamPlayer" parent="."]
|
2020-10-26 19:15:47 +01:00
|
|
|
stream = ExtResource( 4 )
|
2020-10-22 16:19:22 +02:00
|
|
|
|
|
|
|
[node name="PlaySound" type="AudioStreamPlayer" parent="."]
|
2020-10-26 19:15:47 +01:00
|
|
|
stream = ExtResource( 6 )
|
2020-10-22 16:19:22 +02:00
|
|
|
volume_db = -6.848
|
|
|
|
|
|
|
|
[node name="ReturnSound" type="AudioStreamPlayer" parent="."]
|
2020-10-26 19:15:47 +01:00
|
|
|
stream = ExtResource( 5 )
|
2020-10-22 16:19:22 +02:00
|
|
|
volume_db = -6.848
|
2020-10-27 13:14:07 +01:00
|
|
|
|
|
|
|
[node name="Image" type="TextureRect" parent="."]
|
|
|
|
margin_left = -88.0
|
2021-01-14 11:26:21 +01:00
|
|
|
margin_top = -215.0
|
2020-10-27 13:14:07 +01:00
|
|
|
margin_right = 85.0
|
2021-01-14 11:26:21 +01:00
|
|
|
margin_bottom = -134.0
|
2020-10-27 13:14:07 +01:00
|
|
|
mouse_filter = 2
|
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-10-13 14:16:36 +02:00
|
|
|
[connection signal="mouse_entered" from="Area2D" to="." method="_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="Area2D" to="." method="_mouse_exited"]
|