From 8b83cc6bd2898d7eab22a83ed6fa8224b0a9a432 Mon Sep 17 00:00:00 2001 From: EthanLucas Date: Fri, 27 Sep 2024 14:29:54 +1000 Subject: [PATCH] e --- rug_player.tscn | 5 +- tools/presentation.tscn | 198 ++++++++++++++++++++++++++++++++++++++-- tools/progress_bar.gd | 10 ++ 3 files changed, 202 insertions(+), 11 deletions(-) create mode 100644 tools/progress_bar.gd diff --git a/rug_player.tscn b/rug_player.tscn index 1601500..6415526 100644 --- a/rug_player.tscn +++ b/rug_player.tscn @@ -10,10 +10,10 @@ animations = [{ "frames": [{ "duration": 1.0, -"texture": ExtResource("2_5uvqy") +"texture": ExtResource("3_mquon") }, { "duration": 1.0, -"texture": ExtResource("3_mquon") +"texture": ExtResource("2_5uvqy") }], "loop": true, "name": &"default", @@ -40,5 +40,4 @@ shape = SubResource("CircleShape2D_kwcsl") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_ol8gj") autoplay = "idle" -frame = 1 frame_progress = 0.80536 diff --git a/tools/presentation.tscn b/tools/presentation.tscn index d46e217..6d9c14a 100644 --- a/tools/presentation.tscn +++ b/tools/presentation.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=3 uid="uid://c7f5wae7pdjt2"] +[gd_scene load_steps=15 format=3 uid="uid://c7f5wae7pdjt2"] [ext_resource type="Script" path="res://tools/Presentation.gd" id="1_qta7b"] [ext_resource type="PackedScene" uid="uid://d8j6ib7w6yys" path="res://slides/image_slide.tscn" id="2_ik415"] @@ -7,8 +7,19 @@ [ext_resource type="Texture2D" uid="uid://bcgsioqubeos3" path="res://rug/2.png" id="4_s3h6q"] [ext_resource type="Texture2D" uid="uid://xq82athlp711" path="res://rug/3.png" id="5_soan3"] [ext_resource type="Texture2D" uid="uid://c8lv70amgbeev" path="res://rug/4.png" id="6_02god"] +[ext_resource type="Texture2D" uid="uid://dweu560gyqjqy" path="res://icon.svg" id="9_bqqad"] +[ext_resource type="Script" path="res://tools/progress_bar.gd" id="9_k3gnd"] [ext_resource type="PackedScene" uid="uid://cap8s1gpqsueq" path="res://rug_player.tscn" id="12_xc2ke"] +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j57wk"] +bg_color = Color(0.6, 0.6, 0.6, 0) + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_idp5h"] + +[sub_resource type="LabelSettings" id="LabelSettings_mlksy"] +font_size = 50 +font_color = Color(0, 0, 0, 1) + [sub_resource type="LabelSettings" id="LabelSettings_gl1th"] font_color = Color(1, 0, 0, 1) @@ -75,6 +86,7 @@ visible = false position = Vector2(1503, 568) [node name="What is Godot?" parent="Slides" instance=ExtResource("3_o6pbq")] +visible = false layout_mode = 1 [node name="Header" parent="Slides/What is Godot?" index="0"] @@ -135,8 +147,8 @@ visible = false layout_mode = 1 [node name="Header" parent="Slides/Games made in Godot" index="0"] -title = "Meowww!!!" -subtitle = "This is the third slide" +title = "What has been made in Godot?" +subtitle = "" [node name="Footer" parent="Slides/Games made in Godot" index="2"] text = "Things are coming along well~" @@ -174,15 +186,177 @@ subtitle = "This is the third slide" [node name="Footer" parent="Slides/Limitations" index="2"] text = "Things are coming along well~" -[node name="Godot\'s killer features" parent="Slides" instance=ExtResource("3_o6pbq")] +[node name="Godot\'s killer features - File Size" parent="Slides" instance=ExtResource("3_o6pbq")] +layout_mode = 1 + +[node name="Header" parent="Slides/Godot\'s killer features - File Size" index="0"] +title = "Godot's killer features" +subtitle = "Miniature File Size" + +[node name="HBoxContainer" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer" index="0"] +visible = false + +[node name="Engine Comparison graph" type="HBoxContainer" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer" index="1"] +layout_mode = 2 +theme_override_constants/separation = 150 +alignment = 1 + +[node name="Unity" type="VBoxContainer" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph"] +layout_mode = 2 + +[node name="Logo" type="TextureRect" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity"] +layout_mode = 2 +texture = ExtResource("9_bqqad") + +[node name="Control" type="Control" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 3 + +[node name="ProgressBar" type="ProgressBar" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity/Control"] +layout_mode = 1 +anchors_preset = 7 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +offset_top = -85.0 +offset_right = 507.0 +grow_horizontal = 2 +grow_vertical = 0 +rotation = 4.71239 +pivot_offset = Vector2(0, 42) +theme_override_styles/background = SubResource("StyleBoxFlat_j57wk") +theme_override_styles/fill = SubResource("StyleBoxFlat_idp5h") +value = 55.71 +show_percentage = false +script = ExtResource("9_k3gnd") +speed = 3.0 + +[node name="Engine Size" type="Label" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity"] +layout_mode = 2 +text = "100mb" +label_settings = SubResource("LabelSettings_mlksy") + +[node name="Unity2" type="VBoxContainer" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph"] +layout_mode = 2 + +[node name="Logo" type="TextureRect" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2"] +layout_mode = 2 +texture = ExtResource("9_bqqad") + +[node name="Control" type="Control" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 3 + +[node name="ProgressBar" type="ProgressBar" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2/Control"] +layout_mode = 1 +anchors_preset = 7 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +offset_top = -85.0 +offset_right = 507.0 +grow_horizontal = 2 +grow_vertical = 0 +rotation = 4.71239 +pivot_offset = Vector2(0, 42) +theme_override_styles/background = SubResource("StyleBoxFlat_j57wk") +theme_override_styles/fill = SubResource("StyleBoxFlat_idp5h") +value = 55.71 +show_percentage = false +script = ExtResource("9_k3gnd") +speed = 3.0 + +[node name="Engine Size" type="Label" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2"] +layout_mode = 2 +text = "100mb" +label_settings = SubResource("LabelSettings_mlksy") + +[node name="Unity3" type="VBoxContainer" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph"] +layout_mode = 2 + +[node name="Logo" type="TextureRect" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3"] +layout_mode = 2 +texture = ExtResource("9_bqqad") + +[node name="Control" type="Control" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3"] +layout_mode = 2 +size_flags_horizontal = 4 +size_flags_vertical = 3 + +[node name="ProgressBar" type="ProgressBar" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3/Control"] +layout_mode = 1 +anchors_preset = 7 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +offset_top = -85.0 +offset_right = 507.0 +grow_horizontal = 2 +grow_vertical = 0 +rotation = 4.71239 +pivot_offset = Vector2(0, 42) +theme_override_styles/background = SubResource("StyleBoxFlat_j57wk") +theme_override_styles/fill = SubResource("StyleBoxFlat_idp5h") +value = 55.71 +show_percentage = false +script = ExtResource("9_k3gnd") +speed = 3.0 + +[node name="Engine Size" type="Label" parent="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3"] +layout_mode = 2 +text = "100mb" +label_settings = SubResource("LabelSettings_mlksy") + +[node name="Footer" parent="Slides/Godot\'s killer features - File Size" index="2"] +text = "Things are coming along well~" + +[node name="Godot\'s killer features - Lower system requirements" parent="Slides" instance=ExtResource("3_o6pbq")] visible = false layout_mode = 1 -[node name="Header" parent="Slides/Godot\'s killer features" index="0"] -title = "Meowww!!!" +[node name="Header" parent="Slides/Godot\'s killer features - Lower system requirements" index="0"] +title = "Godot's killer features" subtitle = "This is the third slide" -[node name="Footer" parent="Slides/Godot\'s killer features" index="2"] +[node name="Footer" parent="Slides/Godot\'s killer features - Lower system requirements" index="2"] +text = "Things are coming along well~" + +[node name="Godot\'s killer features - Easy export for HTML" parent="Slides" instance=ExtResource("3_o6pbq")] +visible = false +layout_mode = 1 + +[node name="Header" parent="Slides/Godot\'s killer features - Easy export for HTML" index="0"] +title = "Godot's killer features" +subtitle = "This is the third slide" + +[node name="Footer" parent="Slides/Godot\'s killer features - Easy export for HTML" index="2"] +text = "Things are coming along well~" + +[node name="Godot\'s killer features - Asset Library" parent="Slides" instance=ExtResource("3_o6pbq")] +visible = false +layout_mode = 1 + +[node name="Header" parent="Slides/Godot\'s killer features - Asset Library" index="0"] +title = "Godot's killer features" +subtitle = "This is the third slide" + +[node name="Footer" parent="Slides/Godot\'s killer features - Asset Library" index="2"] +text = "Things are coming along well~" + +[node name="Godot\'s killer features - Open Source (again)" parent="Slides" instance=ExtResource("3_o6pbq")] +visible = false +layout_mode = 1 + +[node name="Header" parent="Slides/Godot\'s killer features - Open Source (again)" index="0"] +title = "Godot's killer features" +subtitle = "This is the third slide" + +[node name="Footer" parent="Slides/Godot\'s killer features - Open Source (again)" index="2"] text = "Things are coming along well~" [node name="Want to learn Godot?" parent="Slides" instance=ExtResource("3_o6pbq")] @@ -229,6 +403,10 @@ text = "Exiting" label_settings = SubResource("LabelSettings_gl1th") horizontal_alignment = 1 +[connection signal="visibility_changed" from="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity/Control/ProgressBar" to="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity/Control/ProgressBar" method="_on_visibility_changed"] +[connection signal="visibility_changed" from="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2/Control/ProgressBar" to="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity2/Control/ProgressBar" method="_on_visibility_changed"] +[connection signal="visibility_changed" from="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3/Control/ProgressBar" to="Slides/Godot\'s killer features - File Size/ColorRect/MarginContainer/Engine Comparison graph/Unity3/Control/ProgressBar" method="_on_visibility_changed"] + [editable path="Slides/1"] [editable path="Slides/2"] [editable path="Slides/3"] @@ -240,6 +418,10 @@ horizontal_alignment = 1 [editable path="Slides/Benefits for game dev"] [editable path="Slides/What makes Godot different?"] [editable path="Slides/Limitations"] -[editable path="Slides/Godot\'s killer features"] +[editable path="Slides/Godot\'s killer features - File Size"] +[editable path="Slides/Godot\'s killer features - Lower system requirements"] +[editable path="Slides/Godot\'s killer features - Easy export for HTML"] +[editable path="Slides/Godot\'s killer features - Asset Library"] +[editable path="Slides/Godot\'s killer features - Open Source (again)"] [editable path="Slides/Want to learn Godot?"] [editable path="Slides/Our contact page (Leave up for questions)"] diff --git a/tools/progress_bar.gd b/tools/progress_bar.gd new file mode 100644 index 0000000..fc240af --- /dev/null +++ b/tools/progress_bar.gd @@ -0,0 +1,10 @@ +extends ProgressBar + +@export var speed : float = 2 + +func _process(delta: float) -> void: + value = lerp(value, 100.0, speed * delta) + +func _on_visibility_changed() -> void: + if visible: + value = 0