untitled-plant-game/World/Main.tscn

191 lines
6.2 KiB
Text
Raw Normal View History

2021-12-06 02:12:54 +00:00
[gd_scene load_steps=23 format=2]
2021-12-03 23:12:22 +00:00
2021-12-04 00:20:48 +00:00
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
2021-12-04 15:14:06 +00:00
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
2021-12-04 16:45:59 +00:00
[ext_resource path="res://Aseprite/fullscreen.png" type="Texture" id=3]
[ext_resource path="res://Aseprite/fullscreen_hover.png" type="Texture" id=4]
2021-12-04 17:37:24 +00:00
[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]
2021-12-04 17:46:57 +00:00
[ext_resource path="res://Aseprite/pot.png" type="Texture" id=9]
2021-12-05 16:31:10 +00:00
[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]
2021-12-05 19:26:10 +00:00
[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]
2021-12-06 02:12:54 +00:00
[ext_resource path="res://World/Pot.gd" type="Script" id=15]
2021-12-05 16:31:10 +00:00
[sub_resource type="Theme" id=7]
2021-12-04 17:37:24 +00:00
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.14902, 0.0431373, 0.129412, 1 )
[sub_resource type="StyleBoxFlat" id=2]
2021-12-04 20:02:52 +00:00
bg_color = Color( 0.517647, 0.745098, 0.929412, 1 )
2021-12-04 17:37:24 +00:00
expand_margin_left = 2.0
expand_margin_right = 2.0
2021-12-03 23:12:22 +00:00
2021-12-05 16:31:10 +00:00
[sub_resource type="CanvasItemMaterial" id=3]
[sub_resource type="DynamicFont" id=4]
2021-12-06 02:12:54 +00:00
size = 6
2021-12-05 16:31:10 +00:00
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 )
2021-12-05 19:26:10 +00:00
[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 )
2021-12-03 23:12:22 +00:00
[node name="Main" type="Node2D"]
2021-12-04 00:20:48 +00:00
[node name="Plant" parent="." instance=ExtResource( 1 )]
2021-12-04 15:14:06 +00:00
2021-12-04 20:02:52 +00:00
[node name="Options" type="Panel" parent="."]
2021-12-04 17:37:24 +00:00
margin_left = 236.0
margin_top = 2.0
2021-12-04 15:14:06 +00:00
margin_right = 254.0
margin_bottom = 142.0
2021-12-05 19:26:10 +00:00
mouse_filter = 2
2021-12-05 16:31:10 +00:00
theme = SubResource( 7 )
2021-12-04 17:37:24 +00:00
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-04 20:02:52 +00:00
[node name="FullscreenButton" type="TextureButton" parent="Options"]
2021-12-04 17:37:24 +00:00
margin_left = 1.0
margin_top = 123.0
margin_right = 17.0
margin_bottom = 139.0
2021-12-04 16:45:59 +00:00
texture_normal = ExtResource( 3 )
texture_hover = ExtResource( 4 )
2021-12-04 15:14:06 +00:00
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-04 20:02:52 +00:00
[node name="MusicVolume" type="VSlider" parent="Options"]
2021-12-04 17:37:24 +00:00
margin_left = 1.0
2021-12-06 02:12:54 +00:00
margin_top = 62.0
2021-12-04 17:37:24 +00:00
margin_right = 17.0
2021-12-06 02:12:54 +00:00
margin_bottom = 122.0
2021-12-04 17:37:24 +00:00
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"
2021-12-06 02:12:54 +00:00
[node name="SFXVolume" type="VSlider" parent="Options"]
margin_left = 1.0
margin_top = 1.0
margin_right = 17.0
margin_bottom = 61.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"
2021-12-04 20:02:52 +00:00
[node name="RightPanel" type="Panel" parent="."]
margin_left = 128.0
2021-12-04 17:37:24 +00:00
margin_top = 2.0
margin_right = 234.0
margin_bottom = 142.0
2021-12-05 19:26:10 +00:00
mouse_filter = 2
2021-12-05 16:31:10 +00:00
theme = SubResource( 7 )
2021-12-04 17:37:24 +00:00
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-05 16:31:10 +00:00
[node name="Terminal" type="RichTextLabel" parent="RightPanel"]
material = SubResource( 3 )
2021-12-05 12:56:57 +00:00
margin_left = 1.0
margin_top = 1.0
margin_right = 105.0
margin_bottom = 120.0
2021-12-05 16:31:10 +00:00
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 )
2021-12-05 12:56:57 +00:00
bbcode_enabled = true
2021-12-05 16:31:10 +00:00
scroll_following = true
script = ExtResource( 11 )
2021-12-05 12:56:57 +00:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-05 16:31:10 +00:00
[node name="Reveal" type="Timer" parent="RightPanel/Terminal"]
2021-12-06 02:12:54 +00:00
wait_time = 0.05
[node name="MessageTimer" type="Timer" parent="RightPanel/Terminal"]
2021-12-05 16:31:10 +00:00
2021-12-05 19:26:10 +00:00
[node name="WateringCan" type="TextureButton" parent="RightPanel"]
margin_left = 2.0
margin_top = 122.0
margin_right = 19.0
margin_bottom = 139.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"]
2021-12-06 02:12:54 +00:00
[node name="WaterParticles" type="Particles2D" parent="RightPanel/WateringCan"]
2021-12-05 19:26:10 +00:00
position = Vector2( -56, -1 )
2021-12-06 02:12:54 +00:00
z_index = 2
2021-12-05 19:26:10 +00:00
emitting = false
amount = 15
lifetime = 0.5
process_material = SubResource( 13 )
2021-12-04 20:02:52 +00:00
[node name="Pot" type="Sprite" parent="."]
2021-12-04 17:46:57 +00:00
position = Vector2( 64, 136 )
texture = ExtResource( 9 )
2021-12-06 02:12:54 +00:00
script = ExtResource( 15 )
2021-12-04 17:46:57 +00:00
2021-12-06 02:12:54 +00:00
[connection signal="good_water" from="Plant" to="Pot" method="_on_Plant_good_water"]
2021-12-05 16:31:10 +00:00
[connection signal="has_need" from="Plant" to="RightPanel/Terminal" method="_on_Plant_has_need"]
2021-12-04 20:02:52 +00:00
[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"]
2021-12-06 02:12:54 +00:00
[connection signal="value_changed" from="Options/SFXVolume" to="Options/SFXVolume" method="_on_MusicVolume_value_changed"]
[connection signal="was_social" from="RightPanel/Terminal" to="Plant" method="_on_Terminal_was_social"]
2021-12-05 16:31:10 +00:00
[connection signal="timeout" from="RightPanel/Terminal/Reveal" to="RightPanel/Terminal" method="_on_Reveal_timeout"]
2021-12-06 02:12:54 +00:00
[connection signal="timeout" from="RightPanel/Terminal/MessageTimer" to="RightPanel/Terminal" method="_on_MessageTimer_timeout"]
2021-12-05 19:26:10 +00:00
[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"]