diff options
Diffstat (limited to 'scenes/levels')
-rw-r--r-- | scenes/levels/base_level.gd | 10 | ||||
-rw-r--r-- | scenes/levels/typeracer.gd | 2 | ||||
-rw-r--r-- | scenes/levels/typeracer.tscn | 55 |
3 files changed, 41 insertions, 26 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index 9542161..bb2dcaa 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -7,11 +7,11 @@ onready var _path_renderer : PathRenderer = $PathRenderer onready var _health_bar = $Camera2D/healthbar onready var _last_camera_location : Vector2 = $Camera2D.position const _levels = [ - preload("res://scenes/levels/hearts_introduce.tscn"), - preload("res://scenes/levels/typeracer_explain.tscn"), - preload("res://scenes/levels/typeracer.tscn"), - preload("res://scenes/levels/reactiontest.tscn"), - preload("res://scenes/levels/pixel/PixelDefender.tscn"), + #preload("res://scenes/levels/hearts_introduce.tscn"), + #preload("res://scenes/levels/typeracer_explain.tscn"), + #preload("res://scenes/levels/typeracer.tscn"), + #preload("res://scenes/levels/reactiontest.tscn"), + #preload("res://scenes/levels/pixel/PixelDefender.tscn"), preload("res://scenes/levels/puzzle/puzzle.tscn"), ] diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd index c17e1bc..35225be 100644 --- a/scenes/levels/typeracer.gd +++ b/scenes/levels/typeracer.gd @@ -14,7 +14,7 @@ func start(): func _total_time(): if Settings.difficulty == Settings.Difficulty.HARD: - return 10 + return 30 return 60 func _process(delta): diff --git a/scenes/levels/typeracer.tscn b/scenes/levels/typeracer.tscn index 3556dc3..4902263 100644 --- a/scenes/levels/typeracer.tscn +++ b/scenes/levels/typeracer.tscn @@ -1,35 +1,46 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://scenes/levels/typeracer.gd" type="Script" id=1] [ext_resource path="res://textures/colors/light_blue.png" type="Texture" id=2] [ext_resource path="res://components/button.tscn" type="PackedScene" id=3] +[ext_resource path="res://textures/icons/arrow.png" type="Texture" id=4] +[ext_resource path="res://textures/icons/arrow2.png" type="Texture" id=5] + +[sub_resource type="AnimatedTexture" id=1] +frames = 2 +frame_0/texture = ExtResource( 4 ) +frame_1/texture = ExtResource( 5 ) +frame_1/delay_sec = 0.0 [node name="Node2D" type="Node2D"] script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] -position = Vector2( -0.109284, 2.36197 ) -scale = Vector2( 950.266, 537.001 ) +position = Vector2( 38.5719, 3.86911 ) +scale = Vector2( 950.266, 616.154 ) texture = ExtResource( 2 ) [node name="TextEdit" type="TextEdit" parent="."] -margin_left = -301.579 -margin_top = -0.914124 -margin_right = 305.421 -margin_bottom = 225.086 +margin_left = -187.0 +margin_top = -248.0 +margin_right = 470.0 +margin_bottom = 29.0 __meta__ = { "_edit_use_anchors_": false } [node name="Label" type="Label" parent="."] -margin_left = -302.51 -margin_top = -228.588 -margin_right = 315.49 -margin_bottom = -21.5884 +margin_left = -421.534 +margin_top = -23.0214 +margin_right = 239.466 +margin_bottom = 288.979 text = "Hey Matt, -yes I'm on my way as soon as possible. -See you, +this is outrageous! +I can't believe Marcus' Pizza Palace +would go down just like that. +We HAVE to investigate. +See you at 9. Tom" __meta__ = { @@ -46,19 +57,23 @@ __meta__ = { } [node name="Button" parent="." instance=ExtResource( 3 )] -position = Vector2( 387.398, 195.318 ) +position = Vector2( 421.125, 81.956 ) text = "Send" [node name="Incorrect" type="Label" parent="."] -visible = false -margin_left = -308.457 -margin_top = 231.335 -margin_right = 317.543 -margin_bottom = 266.335 -text = "The text you wrote is not exactely correct" +margin_left = -344.613 +margin_top = -295.534 +margin_right = 461.387 +margin_bottom = -260.534 +text = "The text you wrote is not an exact copy of the template" __meta__ = { "_edit_use_anchors_": false } +[node name="Sprite2" type="Sprite" parent="."] +position = Vector2( 147.157, 130.339 ) +rotation = 0.363028 +scale = Vector2( -5.362, 5.362 ) +texture = SubResource( 1 ) [connection signal="text_changed" from="TextEdit" to="." method="_on_TextEdit_text_changed"] [connection signal="on_click" from="Button" to="." method="_on_Button_on_click"] |