Bubble-Blower/scenes/game.tscn

168 lines
5 KiB
Text
Raw Permalink Normal View History

2025-01-26 15:48:01 +01:00
[gd_scene load_steps=14 format=3 uid="uid://bwe0t2hwl5pv1"]
2025-01-25 21:40:19 +01:00
[ext_resource type="Script" uid="uid://b6if2dhse646b" path="res://scripts/game.gd" id="1_lnu2h"]
[ext_resource type="PackedScene" uid="uid://j473t8iwu45y" path="res://scenes/blower.tscn" id="1_uwrxv"]
[ext_resource type="Texture2D" uid="uid://1memr7pxwyl5" path="res://assets/background.svg" id="2_lbhrr"]
[ext_resource type="PackedScene" uid="uid://bofnkey7erc2b" path="res://scenes/recorder.tscn" id="2_yqjtg"]
[ext_resource type="LabelSettings" uid="uid://dl21bg2o5ltaj" path="res://label_settings.tres" id="5_iywne"]
[ext_resource type="Texture2D" uid="uid://dg6g5gxw8s4ll" path="res://assets/Blower.svg" id="5_p57ef"]
[ext_resource type="AudioStream" uid="uid://c7dphq7kgyqki" path="res://assets/Cheerful Annoyance.ogg" id="7_u5sy4"]
[sub_resource type="Animation" id="Animation_yqjtg"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("blower:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.940732]
}
[sub_resource type="Animation" id="Animation_uwrxv"]
resource_name = "blower_state"
step = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("blower:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 0.940732]
}
[sub_resource type="Animation" id="Animation_lnu2h"]
resource_name = "blower_up"
step = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("blower:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.940732, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_lnu2h"]
_data = {
&"RESET": SubResource("Animation_yqjtg"),
&"blower_down": SubResource("Animation_uwrxv"),
&"blower_up": SubResource("Animation_lnu2h")
}
[sub_resource type="Theme" id="Theme_p57ef"]
Button/font_sizes/font_size = 32
Button/fonts/font = null
2025-01-26 15:48:01 +01:00
[sub_resource type="Theme" id="Theme_u5sy4"]
AcceptDialog/font_sizes/title_font_size = 16
Label/font_sizes/font_size = 48
2025-01-25 21:40:19 +01:00
[node name="Game" type="Node2D"]
script = ExtResource("1_lnu2h")
[node name="Recorder" parent="." instance=ExtResource("2_yqjtg")]
2025-01-25 23:09:57 +01:00
[node name="Background" type="Sprite2D" parent="."]
position = Vector2(569, 372)
scale = Vector2(1.25735, 1.07305)
texture = ExtResource("2_lbhrr")
2025-01-25 21:40:19 +01:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_lnu2h")
}
[node name="Button" type="Button" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
2025-01-25 23:09:57 +01:00
offset_left = 494.0
offset_top = 474.0
offset_right = 687.0
offset_bottom = 617.0
2025-01-25 21:40:19 +01:00
grow_horizontal = 2
grow_vertical = 0
size_flags_horizontal = 8
size_flags_vertical = 4
theme = SubResource("Theme_p57ef")
text = "Press
to
Blow"
icon = ExtResource("5_p57ef")
icon_alignment = 2
expand_icon = true
[node name="PointsTimer" type="Timer" parent="."]
wait_time = 0.25
autostart = true
[node name="PointsLabel" type="Label" parent="."]
offset_left = 17.0
offset_top = 8.0
offset_right = 245.0
offset_bottom = 96.0
2025-01-26 15:48:01 +01:00
text = " SOAP: "
2025-01-25 21:40:19 +01:00
label_settings = ExtResource("5_iywne")
[node name="Points" type="Label" parent="."]
offset_left = 253.0
offset_top = 10.0
offset_right = 293.0
offset_bottom = 98.0
text = "0"
label_settings = ExtResource("5_iywne")
[node name="BackgroundMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_u5sy4")
volume_db = -12.0
autoplay = true
parameters/looping = true
2025-01-25 23:09:57 +01:00
[node name="blower" parent="." instance=ExtResource("1_uwrxv")]
position = Vector2(-5.00003, 208)
rotation = 0.940732
2025-01-26 15:48:01 +01:00
[node name="Backdrop" type="ColorRect" parent="."]
visible = false
offset_left = -57.0
offset_top = -33.0
offset_right = 1247.0
offset_bottom = 738.0
color = Color(0.227451, 0.227451, 0.227451, 0.615686)
[node name="Microtransaction" type="ConfirmationDialog" parent="."]
title = "Buy more Bubbles"
initial_position = 2
size = Vector2i(500, 300)
unresizable = true
min_size = Vector2i(200, 300)
max_size = Vector2i(500, 350)
theme = SubResource("Theme_u5sy4")
ok_button_text = "Buy"
dialog_text = "Get more bubble soap for only 9.99$"
dialog_close_on_escape = false
dialog_autowrap = true
cancel_button_text = "Buy 2x"
2025-01-25 23:09:57 +01:00
2025-01-25 21:40:19 +01:00
[connection signal="button_down" from="Button" to="." method="_on_button_button_down"]
[connection signal="button_up" from="Button" to="." method="_on_button_button_up"]
2025-01-26 15:48:01 +01:00
[connection signal="mouse_exited" from="Button" to="." method="_on_button_mouse_exited"]
2025-01-25 21:40:19 +01:00
[connection signal="timeout" from="PointsTimer" to="." method="_on_points_timer_timeout"]
2025-01-26 15:48:01 +01:00
[connection signal="canceled" from="Microtransaction" to="." method="_on_microtransaction_canceled"]
[connection signal="confirmed" from="Microtransaction" to="." method="_on_microtransaction_confirmed"]