summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernard <public.jbernard@web.de>2021-04-27 02:32:29 +0200
committerJonas Bernard <public.jbernard@web.de>2021-04-27 02:33:02 +0200
commitedbfae64911e49b68edd6e6c41bcc67c628097bd (patch)
treea286b1a50de93e1febd68b857c7613b66d314560
parent98fc32a7ea447c7c4159c2b9797a44aaf128c57c (diff)
downloadldjam48-edbfae64911e49b68edd6e6c41bcc67c628097bd.tar.gz
ldjam48-edbfae64911e49b68edd6e6c41bcc67c628097bd.tar.bz2
ldjam48-edbfae64911e49b68edd6e6c41bcc67c628097bd.zip
Updates
-rw-r--r--components/textrevealbox.tscn1
-rw-r--r--scenes/levels/puzzle/puzzle.gd2
-rw-r--r--scenes/levels/typeracer.gd5
3 files changed, 4 insertions, 4 deletions
diff --git a/components/textrevealbox.tscn b/components/textrevealbox.tscn
index aa22aa7..79c1cee 100644
--- a/components/textrevealbox.tscn
+++ b/components/textrevealbox.tscn
@@ -15,5 +15,4 @@ script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
-
[connection signal="finished_reveal" from="TextReveal" to="." method="_on_TextReveal_finished_reveal"]
diff --git a/scenes/levels/puzzle/puzzle.gd b/scenes/levels/puzzle/puzzle.gd
index 746e33e..f1f83e5 100644
--- a/scenes/levels/puzzle/puzzle.gd
+++ b/scenes/levels/puzzle/puzzle.gd
@@ -27,7 +27,7 @@ func _ready():
button.connect("on_click", self, "on_anybutton_click", [i+1])
parts.append(button)
$Pieces.add_child(button)
- _initial_shuffle(100)
+ _initial_shuffle(0)
_render_state()
func _position_from_index(idx):
diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd
index e91e360..9251298 100644
--- a/scenes/levels/typeracer.gd
+++ b/scenes/levels/typeracer.gd
@@ -30,7 +30,7 @@ func _process(delta):
eval()
func eval():
- if $Label.text.replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\r\n', '').replace('\r', '').replace(' ', ''):
+ if $Label.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', ''):
$TextEdit.readonly = true
$Button.disabled = true
$Incorrect.visible = false
@@ -40,9 +40,10 @@ func eval():
timer = 0
$TextEdit.text = ""
$Incorrect.visible = true
+ started = false
func eval_corr():
- if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'):
+ if $Label.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', '') == $TextEdit.text.replace('\n', '').replace('\r\n', '').replace('\r', '').replace(' ', ''):
$TextEdit.readonly = true
$Button.disabled = true
$Incorrect.visible = false