Implement tutorial slideshow

This commit is contained in:
Garrett Gunnell 2025-08-16 02:38:28 -07:00
parent c53d11423f
commit 764d0a6960
18 changed files with 1205 additions and 4 deletions

View file

@ -60,8 +60,8 @@ needs_motion_vectors = false
needs_normal_roughness = false
script = ExtResource("1_vlji8")
main_menu = false
update_speed = 0.023
cook_time = 1
update_speed = 0.05
cook_time = 5
metadata/_custom_type_script = "uid://drfxlavovcgta"
[sub_resource type="CompositorEffect" id="CompositorEffect_h2yge"]
@ -81,7 +81,7 @@ compositor_effects = Array[CompositorEffect]([SubResource("CompositorEffect_ig7t
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uop3n"]
bg_color = Color(0.6, 0.6, 0.6, 0)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_uq7jr"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_g0ep4"]
texture = ExtResource("6_uop3n")
margins = Vector2i(4, 2)
separation = Vector2i(4, 0)
@ -92,7 +92,7 @@ texture_region_size = Vector2i(26, 26)
[sub_resource type="TileSet" id="TileSet_ltoj3"]
tile_size = Vector2i(26, 26)
uv_clipping = true
sources/1 = SubResource("TileSetAtlasSource_uq7jr")
sources/1 = SubResource("TileSetAtlasSource_g0ep4")
[sub_resource type="SystemFont" id="SystemFont_ltoj3"]
font_names = PackedStringArray("rainyhearts")

View file

@ -76,6 +76,7 @@ offset_bottom = 581.0
scale = Vector2(16.869, 6.00736)
mouse_default_cursor_shape = 2
script = ExtResource("2_xkmpe")
metadata/_edit_use_anchors_ = true
[node name="Tutorial Button" type="Panel" parent="UI"]
z_index = 1
@ -87,6 +88,7 @@ offset_bottom = 740.0
scale = Vector2(16.869, 6.00736)
mouse_default_cursor_shape = 2
script = ExtResource("2_shbfh")
metadata/_edit_use_anchors_ = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
@ -101,6 +103,7 @@ offset_bottom = -665.995
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
metadata/_edit_use_anchors_ = true
[node name="CanvasLayer3" type="CanvasLayer" parent="."]
layer = -1
@ -120,6 +123,7 @@ grow_horizontal = 2
grow_vertical = 2
scale = Vector2(4, 4)
mouse_filter = 2
metadata/_edit_use_anchors_ = true
[node name="CanvasLayer4" type="CanvasLayer" parent="."]
layer = -1
@ -140,6 +144,7 @@ grow_horizontal = 2
grow_vertical = 2
scale = Vector2(4, 4)
mouse_filter = 2
metadata/_edit_use_anchors_ = true
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
@ -151,6 +156,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
metadata/_edit_use_anchors_ = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_6qsvb")

View file

@ -0,0 +1,4 @@
extends AcerolaPanel
func on_pressed() -> void:
get_parent().get_node("/root/Node3D/Slides").next_slide()

View file

@ -0,0 +1 @@
uid://vqe37s4t7tyf

View file

@ -0,0 +1,4 @@
extends AcerolaPanel
func on_pressed() -> void:
get_parent().get_node("/root/Node3D/Slides").previous_slide()

View file

@ -0,0 +1 @@
uid://cglvstu26dupc

View file

@ -0,0 +1,30 @@
extends Node2D
var slide_index = 0
var slides = []
func _ready() -> void:
slides = get_children()
slides[slide_index].show()
func previous_slide() -> void:
if slide_index == 0: return
slides[slide_index].hide()
slide_index -= 1
slides[slide_index].show()
func next_slide() -> void:
if slide_index == (slides.size() - 1): return
slides[slide_index].hide()
slide_index += 1
slides[slide_index].show()

View file

@ -0,0 +1 @@
uid://bv7ngik6tjsjc

1154
Assets/Scenes/tutorial.tscn Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B