improve tutorial
This commit is contained in:
parent
46f65587c9
commit
8e4bc38a61
|
@ -10,5 +10,12 @@ func _ready():
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
func _input(event):
|
||||||
|
if event.is_action_pressed("interact"):
|
||||||
|
change_scene()
|
||||||
|
|
||||||
func _on_button_pressed():
|
func _on_button_pressed():
|
||||||
|
change_scene()
|
||||||
|
|
||||||
|
func change_scene():
|
||||||
get_tree().change_scene_to_packed(next_scene)
|
get_tree().change_scene_to_packed(next_scene)
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
[gd_scene load_steps=3 format=3 uid="uid://dsbpdd7xdslx0"]
|
[gd_scene load_steps=4 format=3 uid="uid://cxsuv8lnui8p7"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/tutorial.gd" id="1_i8rpu"]
|
[ext_resource type="Script" path="res://scenes/tutorial.gd" id="1_i8rpu"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cik30de5gaaah" path="res://scenes/ingame_scene.tscn" id="2_lch8g"]
|
[ext_resource type="PackedScene" uid="uid://cik30de5gaaah" path="res://scenes/ingame_scene.tscn" id="2_lch8g"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dhpn2dswrkgyj" path="res://sprites/ui/controlls.svg" id="3_u3bmf"]
|
||||||
|
|
||||||
[node name="Tutorial" type="Node2D"]
|
[node name="Tutorial" type="Node2D"]
|
||||||
script = ExtResource("1_i8rpu")
|
script = ExtResource("1_i8rpu")
|
||||||
|
@ -19,10 +20,18 @@ dragger_visibility = 2
|
||||||
|
|
||||||
[node name="RichTextLabel" type="RichTextLabel" parent="AspectRatioContainer/VSplitContainer"]
|
[node name="RichTextLabel" type="RichTextLabel" parent="AspectRatioContainer/VSplitContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Can YOU please the crowd?
|
bbcode_enabled = true
|
||||||
|
text = "
|
||||||
|
Can [b]YOU[/b] please the crowd?
|
||||||
|
|
||||||
|
|
||||||
Throw out jokes but be aware that not every joke is for everyone.
|
Throw out jokes but be aware that not every joke is for everyone.
|
||||||
Can you please everyone before you run out of breath?"
|
Can you please everyone before you run out of breath?
|
||||||
|
|
||||||
|
|
||||||
|
Use these buttons on your controller
|
||||||
|
or press A, S, or D on your keyboard
|
||||||
|
to tell a joke"
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="AspectRatioContainer/VSplitContainer"]
|
[node name="CenterContainer" type="CenterContainer" parent="AspectRatioContainer/VSplitContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
@ -31,4 +40,8 @@ layout_mode = 2
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "I'm ready for the show!"
|
text = "I'm ready for the show!"
|
||||||
|
|
||||||
|
[node name="Controlls" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(430, 219)
|
||||||
|
texture = ExtResource("3_u3bmf")
|
||||||
|
|
||||||
[connection signal="pressed" from="AspectRatioContainer/VSplitContainer/CenterContainer/Button" to="." method="_on_button_pressed"]
|
[connection signal="pressed" from="AspectRatioContainer/VSplitContainer/CenterContainer/Button" to="." method="_on_button_pressed"]
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="120"
|
||||||
|
height="120"
|
||||||
|
viewBox="0 0 31.749999 31.75"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs1" />
|
||||||
|
<g
|
||||||
|
id="layer1">
|
||||||
|
<circle
|
||||||
|
style="fill:#20b007;fill-opacity:1;stroke-width:0.264583"
|
||||||
|
id="path1"
|
||||||
|
cx="15.875"
|
||||||
|
cy="26.458334"
|
||||||
|
r="5.2916665" />
|
||||||
|
<circle
|
||||||
|
style="fill:#b72929;fill-opacity:1;stroke-width:0.264583"
|
||||||
|
id="path1-6"
|
||||||
|
cx="26.458334"
|
||||||
|
cy="15.875"
|
||||||
|
r="5.2916665" />
|
||||||
|
<circle
|
||||||
|
style="fill:#120ec3;fill-opacity:1;stroke-width:0.264583"
|
||||||
|
id="path1-6-6"
|
||||||
|
cx="5.2916665"
|
||||||
|
cy="15.875"
|
||||||
|
r="5.2916665" />
|
||||||
|
<circle
|
||||||
|
style="fill:#000000;fill-opacity:0;stroke:#d5c419;stroke-width:0.565;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path1-6-6-3"
|
||||||
|
cx="15.875"
|
||||||
|
cy="5.5741663"
|
||||||
|
r="5.2916665" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
|
@ -0,0 +1,37 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dhpn2dswrkgyj"
|
||||||
|
path="res://.godot/imported/controlls.svg-f344638583995aa20a510a8549990547.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sprites/ui/controlls.svg"
|
||||||
|
dest_files=["res://.godot/imported/controlls.svg-f344638583995aa20a510a8549990547.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=false
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
Loading…
Reference in New Issue