Sounds and bug fixes
This commit is contained in:
parent
ffd1361dd8
commit
433908f225
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=14 format=2]
|
[gd_scene load_steps=16 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://images/ui/dialogue_bg.png" type="Texture" id=1]
|
[ext_resource path="res://images/ui/dialogue_bg.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://fonts/dialog_default_font.tres" type="DynamicFont" id=2]
|
[ext_resource path="res://fonts/dialog_default_font.tres" type="DynamicFont" id=2]
|
||||||
@ -8,6 +8,8 @@
|
|||||||
[ext_resource path="res://BlackScreen.tscn" type="PackedScene" id=6]
|
[ext_resource path="res://BlackScreen.tscn" type="PackedScene" id=6]
|
||||||
[ext_resource path="res://scripts/BlackScreen.gd" type="Script" id=7]
|
[ext_resource path="res://scripts/BlackScreen.gd" type="Script" id=7]
|
||||||
[ext_resource path="res://scripts/ControlIndicator.gd" type="Script" id=8]
|
[ext_resource path="res://scripts/ControlIndicator.gd" type="Script" id=8]
|
||||||
|
[ext_resource path="res://sounds/gibberish.wav" type="AudioStream" id=9]
|
||||||
|
[ext_resource path="res://sounds/gibberish2.wav" type="AudioStream" id=10]
|
||||||
|
|
||||||
[sub_resource type="VisualShaderNodeColorConstant" id=1]
|
[sub_resource type="VisualShaderNodeColorConstant" id=1]
|
||||||
constant = Color( 0, 0, 0, 0.803922 )
|
constant = Color( 0, 0, 0, 0.803922 )
|
||||||
@ -212,3 +214,9 @@ fit_content_height = true
|
|||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="GibberishPlayer1" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource( 9 )
|
||||||
|
|
||||||
|
[node name="GibberishPlayer2" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource( 10 )
|
||||||
|
@ -133,7 +133,15 @@ func animate_text():
|
|||||||
if text_label.text[text_label.visible_characters] == ' ':
|
if text_label.text[text_label.visible_characters] == ' ':
|
||||||
text_label.visible_characters += 1
|
text_label.visible_characters += 1
|
||||||
text_label.visible_characters += 1
|
text_label.visible_characters += 1
|
||||||
yield(get_tree().create_timer(0.4 if text_label.text[text_label.visible_characters - 1] == '.' else 0.05), 'timeout')
|
|
||||||
|
var c = text_label.text[text_label.visible_characters - 1]
|
||||||
|
|
||||||
|
if $MarginContainer.visible:
|
||||||
|
if "abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZÀàéÉçÇÈèùÙ.".rfind(c) >= 0:
|
||||||
|
if character_name == 'Ely': $GibberishPlayer2.play()
|
||||||
|
else: $GibberishPlayer1.play()
|
||||||
|
|
||||||
|
yield(get_tree().create_timer(0.4 if c == '.' else 0.05), 'timeout')
|
||||||
if !Globals.ui_accept_tip:
|
if !Globals.ui_accept_tip:
|
||||||
control_indicator.show_press('ui_accept')
|
control_indicator.show_press('ui_accept')
|
||||||
Globals.ui_accept_tip = true
|
Globals.ui_accept_tip = true
|
||||||
|
@ -18,7 +18,6 @@ func _ready():
|
|||||||
|
|
||||||
dialogue_box.connect('update', self, 'update_camera')
|
dialogue_box.connect('update', self, 'update_camera')
|
||||||
|
|
||||||
yield(get_tree().create_timer(2.0), 'timeout')
|
|
||||||
yield(dialogue_box.start_dialogue(intro_dialogue), 'end')
|
yield(dialogue_box.start_dialogue(intro_dialogue), 'end')
|
||||||
get_tree().change_scene("res://scenes/game1.tscn")
|
get_tree().change_scene("res://scenes/game1.tscn")
|
||||||
|
|
||||||
|
@ -17,5 +17,5 @@ force/max_rate=false
|
|||||||
force/max_rate_hz=44100
|
force/max_rate_hz=44100
|
||||||
edit/trim=false
|
edit/trim=false
|
||||||
edit/normalize=false
|
edit/normalize=false
|
||||||
edit/loop=false
|
edit/loop=true
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
BIN
sounds/gibberish.wav
Normal file
BIN
sounds/gibberish.wav
Normal file
Binary file not shown.
21
sounds/gibberish.wav.import
Normal file
21
sounds/gibberish.wav.import
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/gibberish.wav-d9ccae3969716aecb07896cc5967f4f1.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/gibberish.wav"
|
||||||
|
dest_files=[ "res://.import/gibberish.wav-d9ccae3969716aecb07896cc5967f4f1.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
BIN
sounds/gibberish2.wav
Normal file
BIN
sounds/gibberish2.wav
Normal file
Binary file not shown.
21
sounds/gibberish2.wav.import
Normal file
21
sounds/gibberish2.wav.import
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/gibberish2.wav-6ec18f6f246c055727b749c364482200.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sounds/gibberish2.wav"
|
||||||
|
dest_files=[ "res://.import/gibberish2.wav-6ec18f6f246c055727b749c364482200.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
Loading…
Reference in New Issue
Block a user