diff options
author | IcECreAm777 <hgk.1998@googlemail.com> | 2023-07-08 17:05:48 +0200 |
---|---|---|
committer | IcECreAm777 <hgk.1998@googlemail.com> | 2023-07-08 17:05:48 +0200 |
commit | 516635e22464699fa940ed981a186088352ba734 (patch) | |
tree | 9fcce535afb4b59f6109d95644b23ca5f5873b72 /Nodes/Level_test.tscn | |
parent | 8b08fec313ac3517e782d946cbd203958801e6be (diff) | |
download | 2023-516635e22464699fa940ed981a186088352ba734.tar.gz 2023-516635e22464699fa940ed981a186088352ba734.tar.bz2 2023-516635e22464699fa940ed981a186088352ba734.zip |
some cleanups
Diffstat (limited to '')
-rw-r--r-- | Nodes/Level_test.tscn | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/Nodes/Level_test.tscn b/Nodes/Level_test.tscn index 18a1a1a..80330fd 100644 --- a/Nodes/Level_test.tscn +++ b/Nodes/Level_test.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://ct2kxw1rrjryo"] +[gd_scene load_steps=11 format=3 uid="uid://dliou1u4o6bib"] [ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_0esj3"] [ext_resource type="Texture2D" uid="uid://5xqahgawme4m" path="res://Assets/start.png" id="1_wenkl"] @@ -6,6 +6,8 @@ [ext_resource type="Texture2D" uid="uid://dg3v488vx0oj6" path="res://Assets/checkpoint.png" id="3_cgigr"] [ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="4_xvobs"] [ext_resource type="Script" path="res://Scripts/drawing.gd" id="5_x7h3g"] +[ext_resource type="PackedScene" uid="uid://wkfai2lvnp7n" path="res://Nodes/checkpoint.tscn" id="7_52mhf"] +[ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="8_8u1ba"] [sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"] radius = 18.0278 @@ -15,34 +17,22 @@ radius = 18.0278 [node name="Level_test" type="Node2D"] script = ExtResource("1_0esj3") -[node name="start" type="TextureButton" parent="."] +[node name="Start" type="TextureButton" parent="."] offset_left = 787.0 offset_top = 514.0 offset_right = 819.0 offset_bottom = 546.0 texture_normal = ExtResource("1_wenkl") -[node name="End" type="Sprite2D" parent="."] +[node name="FinishLine" type="Sprite2D" parent="."] position = Vector2(793, 96) texture = ExtResource("2_gp6ng") -[node name="Area2D" type="Area2D" parent="End"] +[node name="Area2D" type="Area2D" parent="FinishLine"] -[node name="CollisionShape2D" type="CollisionShape2D" parent="End/Area2D"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="FinishLine/Area2D"] shape = SubResource("CircleShape2D_6g88q") -[node name="cp1" type="Sprite2D" parent="."] -position = Vector2(283, 479) -texture = ExtResource("3_cgigr") - -[node name="cp2" type="Sprite2D" parent="."] -position = Vector2(618, 354) -texture = ExtResource("3_cgigr") - -[node name="cp3" type="Sprite2D" parent="."] -position = Vector2(514, 173) -texture = ExtResource("3_cgigr") - [node name="Car" parent="." instance=ExtResource("4_xvobs")] max_speed = 500 acceleration = 0.05 @@ -65,5 +55,18 @@ texture = ExtResource("3_cgigr") wait_time = 0.2 one_shot = true -[connection signal="pressed" from="start" to="DrawNode" method="_start_drawing"] -[connection signal="mouse_entered" from="End/Area2D" to="DrawNode" method="_end_drawing"] +[node name="Checkpoints" type="Node" parent="."] + +[node name="Checkpoint" parent="Checkpoints" instance=ExtResource("7_52mhf")] +position = Vector2(619, 355) + +[node name="Checkpoint2" parent="Checkpoints" instance=ExtResource("7_52mhf")] +position = Vector2(285, 479) + +[node name="Checkpoint3" parent="Checkpoints" instance=ExtResource("7_52mhf")] +position = Vector2(517, 172) + +[node name="UI" parent="." instance=ExtResource("8_8u1ba")] + +[connection signal="pressed" from="Start" to="DrawNode" method="_start_drawing"] +[connection signal="mouse_entered" from="FinishLine/Area2D" to="DrawNode" method="_end_drawing"] |