Better lava

This commit is contained in:
bingus_violet 2024-03-17 21:56:16 -05:00
parent 4f70414ed9
commit d0d7899340
82 changed files with 1747 additions and 738 deletions

View file

@ -1,11 +1,6 @@
extends Node2D
extends Area2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_body_shape_entered(_body_rid, body, _body_shape_index, _local_shape_index):
if "checkpointPos" in body:
body.checkpointPos = body.global_position
queue_free()

View file

@ -1,3 +1,13 @@
[gd_scene format=3 uid="uid://dep314vkturtp"]
[gd_scene load_steps=3 format=3 uid="uid://dep314vkturtp"]
[node name="Checkpoint" type="Node2D"]
[ext_resource type="Script" path="res://Objects/Checkpoint/Checkpoint.gd" id="1_63qyw"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4a0ws"]
[node name="Checkpoint" type="Area2D"]
script = ExtResource("1_63qyw")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_4a0ws")
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]