mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
218 lines
7.1 KiB
Text
218 lines
7.1 KiB
Text
[gd_scene load_steps=26 format=2]
|
|
|
|
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
|
|
[ext_resource path="res://Aseprite/fullscreen.png" type="Texture" id=3]
|
|
[ext_resource path="res://Aseprite/fullscreen_hover.png" type="Texture" id=4]
|
|
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=5]
|
|
[ext_resource path="res://Menu/Volume.gd" type="Script" id=6]
|
|
[ext_resource path="res://Aseprite/music.png" type="Texture" id=7]
|
|
[ext_resource path="res://Aseprite/music_hover.png" type="Texture" id=8]
|
|
[ext_resource path="res://Aseprite/pot.png" type="Texture" id=9]
|
|
[ext_resource path="res://Font/pixeloid-font/PixeloidMono-1G8ae.ttf" type="DynamicFontData" id=10]
|
|
[ext_resource path="res://World/Terminal.gd" type="Script" id=11]
|
|
[ext_resource path="res://Aseprite/wateringcan.png" type="Texture" id=12]
|
|
[ext_resource path="res://Tools/WateringCan.gd" type="Script" id=13]
|
|
[ext_resource path="res://Aseprite/wateringcanactive.png" type="Texture" id=14]
|
|
[ext_resource path="res://World/Pot.gd" type="Script" id=15]
|
|
[ext_resource path="res://Aseprite/Background.png" type="Texture" id=16]
|
|
[ext_resource path="res://Aseprite/Mountains.png" type="Texture" id=17]
|
|
[ext_resource path="res://World/Clouds.gd" type="Script" id=18]
|
|
|
|
[sub_resource type="Theme" id=7]
|
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
bg_color = Color( 0.14902, 0.0431373, 0.129412, 1 )
|
|
|
|
[sub_resource type="StyleBoxFlat" id=2]
|
|
bg_color = Color( 0.517647, 0.745098, 0.929412, 1 )
|
|
expand_margin_left = 2.0
|
|
expand_margin_right = 2.0
|
|
|
|
[sub_resource type="CanvasItemMaterial" id=3]
|
|
|
|
[sub_resource type="DynamicFont" id=4]
|
|
size = 6
|
|
extra_spacing_char = 1
|
|
font_data = ExtResource( 10 )
|
|
|
|
[sub_resource type="StyleBoxFlat" id=6]
|
|
content_margin_left = 2.0
|
|
content_margin_right = 2.0
|
|
content_margin_top = 2.0
|
|
content_margin_bottom = 2.0
|
|
bg_color = Color( 0.14902, 0.0431373, 0.129412, 1 )
|
|
border_color = Color( 0.517647, 0.745098, 0.929412, 1 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=13]
|
|
flag_disable_z = true
|
|
direction = Vector3( -1, 0, 0 )
|
|
gravity = Vector3( 0, 98, 0 )
|
|
initial_velocity = 15.0
|
|
orbit_velocity = 0.0
|
|
orbit_velocity_random = 0.0
|
|
color = Color( 0.341176, 0.337255, 0.756863, 1 )
|
|
|
|
[node name="Main" type="Node2D"]
|
|
|
|
[node name="Plant" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="Blue" type="ColorRect" parent="."]
|
|
margin_left = 128.0
|
|
margin_right = 237.0
|
|
margin_bottom = 144.0
|
|
color = Color( 0.517647, 0.745098, 0.929412, 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Options" type="Panel" parent="."]
|
|
margin_left = 237.0
|
|
margin_top = 1.0
|
|
margin_right = 255.0
|
|
margin_bottom = 143.0
|
|
mouse_filter = 2
|
|
theme = SubResource( 7 )
|
|
custom_styles/panel = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="FullscreenButton" type="TextureButton" parent="Options"]
|
|
margin_left = 1.0
|
|
margin_top = 125.0
|
|
margin_right = 17.0
|
|
margin_bottom = 141.0
|
|
texture_normal = ExtResource( 3 )
|
|
texture_hover = ExtResource( 4 )
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="MusicVolume" type="VSlider" parent="Options"]
|
|
margin_left = 1.0
|
|
margin_top = 63.0
|
|
margin_right = 17.0
|
|
margin_bottom = 124.0
|
|
custom_icons/tick = ExtResource( 7 )
|
|
custom_icons/grabber_disabled = ExtResource( 7 )
|
|
custom_icons/grabber_highlight = ExtResource( 8 )
|
|
custom_icons/grabber = ExtResource( 7 )
|
|
custom_styles/slider = SubResource( 2 )
|
|
max_value = 1.0
|
|
step = 0.1
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
bus_channel = "Music"
|
|
|
|
[node name="SFXVolume" type="VSlider" parent="Options"]
|
|
margin_left = 1.0
|
|
margin_top = 1.0
|
|
margin_right = 17.0
|
|
margin_bottom = 62.0
|
|
rect_scale = Vector2( 1, 0.99844 )
|
|
custom_icons/tick = ExtResource( 7 )
|
|
custom_icons/grabber_disabled = ExtResource( 7 )
|
|
custom_icons/grabber_highlight = ExtResource( 8 )
|
|
custom_icons/grabber = ExtResource( 7 )
|
|
custom_styles/slider = SubResource( 2 )
|
|
max_value = 1.0
|
|
step = 0.1
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
bus_channel = "SFX"
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
|
|
[node name="Mountains" type="Sprite" parent="Node2D"]
|
|
position = Vector2( 64, 74 )
|
|
texture = ExtResource( 17 )
|
|
|
|
[node name="Clouds" type="Node2D" parent="Node2D"]
|
|
script = ExtResource( 18 )
|
|
|
|
[node name="Timer" type="Timer" parent="Node2D/Clouds"]
|
|
|
|
[node name="Background" type="Sprite" parent="Node2D"]
|
|
texture = ExtResource( 16 )
|
|
centered = false
|
|
|
|
[node name="Pot" type="Sprite" parent="Node2D"]
|
|
position = Vector2( 64, 135 )
|
|
texture = ExtResource( 9 )
|
|
script = ExtResource( 15 )
|
|
|
|
[node name="RightPanel" type="Panel" parent="."]
|
|
margin_left = 129.0
|
|
margin_top = 1.0
|
|
margin_right = 236.0
|
|
margin_bottom = 143.0
|
|
mouse_filter = 2
|
|
theme = SubResource( 7 )
|
|
custom_styles/panel = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Terminal" type="RichTextLabel" parent="RightPanel"]
|
|
material = SubResource( 3 )
|
|
margin_left = 1.0
|
|
margin_top = 1.0
|
|
margin_right = 105.0
|
|
margin_bottom = 120.0
|
|
theme = ExtResource( 5 )
|
|
custom_colors/default_color = Color( 0.94902, 0.988235, 0.878431, 1 )
|
|
custom_fonts/normal_font = SubResource( 4 )
|
|
custom_styles/normal = SubResource( 6 )
|
|
bbcode_enabled = true
|
|
scroll_following = true
|
|
script = ExtResource( 11 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Reveal" type="Timer" parent="RightPanel/Terminal"]
|
|
wait_time = 0.05
|
|
|
|
[node name="MessageTimer" type="Timer" parent="RightPanel/Terminal"]
|
|
|
|
[node name="WateringCan" type="TextureButton" parent="RightPanel"]
|
|
margin_left = 1.0
|
|
margin_top = 125.0
|
|
margin_right = 18.0
|
|
margin_bottom = 142.0
|
|
texture_normal = ExtResource( 12 )
|
|
texture_pressed = ExtResource( 14 )
|
|
texture_hover = ExtResource( 14 )
|
|
texture_disabled = ExtResource( 12 )
|
|
script = ExtResource( 13 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Timer" type="Timer" parent="RightPanel/WateringCan"]
|
|
|
|
[node name="WaterParticles" type="Particles2D" parent="RightPanel/WateringCan"]
|
|
position = Vector2( -56, -1 )
|
|
z_index = 2
|
|
emitting = false
|
|
amount = 15
|
|
lifetime = 0.5
|
|
process_material = SubResource( 13 )
|
|
|
|
[connection signal="good_water" from="Plant" to="Node2D/Pot" method="_on_Plant_good_water"]
|
|
[connection signal="has_need" from="Plant" to="RightPanel/Terminal" method="_on_Plant_has_need"]
|
|
[connection signal="pressed" from="Options/FullscreenButton" to="Options/FullscreenButton" method="_on_FullscreenButton_pressed"]
|
|
[connection signal="value_changed" from="Options/MusicVolume" to="Options/MusicVolume" method="_on_MusicVolume_value_changed"]
|
|
[connection signal="value_changed" from="Options/SFXVolume" to="Options/SFXVolume" method="_on_MusicVolume_value_changed"]
|
|
[connection signal="timeout" from="Node2D/Clouds/Timer" to="Node2D/Clouds" method="_on_Timer_timeout"]
|
|
[connection signal="was_social" from="RightPanel/Terminal" to="Plant" method="_on_Terminal_was_social"]
|
|
[connection signal="timeout" from="RightPanel/Terminal/Reveal" to="RightPanel/Terminal" method="_on_Reveal_timeout"]
|
|
[connection signal="timeout" from="RightPanel/Terminal/MessageTimer" to="RightPanel/Terminal" method="_on_MessageTimer_timeout"]
|
|
[connection signal="pressed" from="RightPanel/WateringCan" to="RightPanel/WateringCan" method="_on_WateringCan_pressed"]
|
|
[connection signal="timeout" from="RightPanel/WateringCan/Timer" to="Plant" method="add_water"]
|