aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-09 15:45:42 +0200
committerLibravatar perivesta <>2023-07-09 15:45:42 +0200
commit0c0674dc05d71ab156b7077f4415b78135d7c1cc (patch)
treef2cd3f6ced34539e0b6de4ad43aa7b492821e1b2 /Nodes
parent5b1a456768f0072e10577f52914898473385e72b (diff)
download2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.gz
2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.bz2
2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.zip
more sprites
Diffstat (limited to '')
-rw-r--r--Levels/Level_test_2.tscn (renamed from Nodes/Level_test_2.tscn)0
-rw-r--r--Nodes/car.tscn9
-rw-r--r--Nodes/checkpoint.tscn9
3 files changed, 12 insertions, 6 deletions
diff --git a/Nodes/Level_test_2.tscn b/Levels/Level_test_2.tscn
index fff7252..fff7252 100644
--- a/Nodes/Level_test_2.tscn
+++ b/Levels/Level_test_2.tscn
diff --git a/Nodes/car.tscn b/Nodes/car.tscn
index dbfb4e1..c3eb2a6 100644
--- a/Nodes/car.tscn
+++ b/Nodes/car.tscn
@@ -1,17 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://c1mvbh2fwqtkb"]
[ext_resource type="Script" path="res://Scripts/car_behaviour.gd" id="1_0e4ux"]
-
-[sub_resource type="CanvasTexture" id="CanvasTexture_aacgf"]
+[ext_resource type="Texture2D" uid="uid://cjb81lukqo6n4" path="res://Assets/Images/car2.png" id="2_wteha"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wvlyu"]
+size = Vector2(32, 14)
[node name="Car" type="CharacterBody2D"]
script = ExtResource("1_0e4ux")
[node name="Sprite2D" type="Sprite2D" parent="."]
-scale = Vector2(19.92, 19.76)
-texture = SubResource("CanvasTexture_aacgf")
+visible = false
+rotation = 1.5708
+texture = ExtResource("2_wteha")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_wvlyu")
diff --git a/Nodes/checkpoint.tscn b/Nodes/checkpoint.tscn
index 458f121..5d95f7a 100644
--- a/Nodes/checkpoint.tscn
+++ b/Nodes/checkpoint.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=4 format=3 uid="uid://wkfai2lvnp7n"]
+[gd_scene load_steps=5 format=3 uid="uid://wkfai2lvnp7n"]
[ext_resource type="Script" path="res://Scripts/Checkpoint.gd" id="1_fwyov"]
[ext_resource type="Texture2D" uid="uid://2jhabylue78s" path="res://Assets/Images/checkpoint_open.png" id="2_62gva"]
+[ext_resource type="Texture2D" uid="uid://c016iy5c3e472" path="res://Assets/Images/checkpoint_closed_2.png" id="3_ud10i"]
[sub_resource type="CircleShape2D" id="CircleShape2D_q6wen"]
radius = 17.0294
@@ -14,7 +15,11 @@ script = ExtResource("1_fwyov")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_q6wen")
-[node name="Sprite2D" type="Sprite2D" parent="."]
+[node name="Sprite2Dopen" type="Sprite2D" parent="."]
texture = ExtResource("2_62gva")
+[node name="Sprite2Dclosed" type="Sprite2D" parent="."]
+visible = false
+texture = ExtResource("3_ud10i")
+
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]