summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scenes/levels/pixel/PixelDefender.gd4
-rw-r--r--scenes/levels/pixel/PixelDefender.tscn1
-rw-r--r--scenes/levels/reactiontest.gd4
-rw-r--r--scenes/levels/typeracer.gd12
-rw-r--r--scenes/levels/typeracer.tscn2
-rw-r--r--scenes/levels/typeracer_explain.tscn6
6 files changed, 19 insertions, 10 deletions
diff --git a/scenes/levels/pixel/PixelDefender.gd b/scenes/levels/pixel/PixelDefender.gd
index a7c8661..2667238 100644
--- a/scenes/levels/pixel/PixelDefender.gd
+++ b/scenes/levels/pixel/PixelDefender.gd
@@ -25,9 +25,9 @@ func start():
.start()
t = 0
$Enemies.get_children().clear()
- var enemy_count = 5
+ var enemy_count = 6
if Settings.difficulty == Settings.Difficulty.HARD:
- enemy_count += 3
+ enemy_count += 7
for i in range(5):
_new_enemy()
diff --git a/scenes/levels/pixel/PixelDefender.tscn b/scenes/levels/pixel/PixelDefender.tscn
index 29c7674..711e89f 100644
--- a/scenes/levels/pixel/PixelDefender.tscn
+++ b/scenes/levels/pixel/PixelDefender.tscn
@@ -13,5 +13,4 @@ script = ExtResource( 1 )
position = Vector2( -432.818, -39.5735 )
[node name="Enemies" type="Node2D" parent="."]
-
[connection signal="area_shape_entered" from="spaceship" to="." method="_on_spaceship_area_shape_entered"]
diff --git a/scenes/levels/reactiontest.gd b/scenes/levels/reactiontest.gd
index 60b76ab..a121ecb 100644
--- a/scenes/levels/reactiontest.gd
+++ b/scenes/levels/reactiontest.gd
@@ -8,8 +8,8 @@ var timer = 0
func _total_time():
if Settings.difficulty == Settings.Difficulty.HARD:
- return 10
- return 60
+ return 6
+ return 10
func start():
.start()
diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd
index 6c0a63a..173817d 100644
--- a/scenes/levels/typeracer.gd
+++ b/scenes/levels/typeracer.gd
@@ -15,7 +15,7 @@ func start():
func _total_time():
if Settings.difficulty == Settings.Difficulty.HARD:
return 10
- return 20
+ return 60
func _process(delta):
if not running:
@@ -27,6 +27,7 @@ func _process(delta):
func eval():
if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'):
+ $TextEdit.readonly = true
finish_level()
else:
lose_heart()
@@ -34,5 +35,14 @@ func eval():
$TextEdit.text = ""
$Incorrect.visible = true
+func eval_corr():
+ if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'):
+ $TextEdit.readonly = true
+ finish_level()
+
func _on_Button_on_click():
eval()
+
+
+func _on_TextEdit_text_changed():
+ eval_corr()
diff --git a/scenes/levels/typeracer.tscn b/scenes/levels/typeracer.tscn
index 2d87225..b8e0b9c 100644
--- a/scenes/levels/typeracer.tscn
+++ b/scenes/levels/typeracer.tscn
@@ -59,5 +59,5 @@ text = "The text you wrote is not exactely correct"
__meta__ = {
"_edit_use_anchors_": false
}
-
+[connection signal="text_changed" from="TextEdit" to="." method="_on_TextEdit_text_changed"]
[connection signal="on_click" from="Button" to="." method="_on_Button_on_click"]
diff --git a/scenes/levels/typeracer_explain.tscn b/scenes/levels/typeracer_explain.tscn
index f4b8897..3e0e1d0 100644
--- a/scenes/levels/typeracer_explain.tscn
+++ b/scenes/levels/typeracer_explain.tscn
@@ -9,12 +9,12 @@ position = Vector2( 1.33484, 0 )
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
-position = Vector2( 5.72205e-06, 0.667416 )
-scale = Vector2( 671.09, 199.891 )
+position = Vector2( 0.667454, 0.667416 )
+scale = Vector2( 805.909, 199.891 )
texture = ExtResource( 3 )
[node name="TextrevealBox" parent="." instance=ExtResource( 1 )]
-text = "Now type the answer of the mail in time!"
+text = "Now type the answer to the mail in time!"
autostart = false
speed = 8
[connection signal="finished_reveal" from="TextrevealBox" to="." method="_on_TextrevealBox_finished_reveal"]