portals yo
This commit is contained in:
1 parent
fa1050d017
commit
366f449d79
13 files changed
+288
-3
No files matched your search
@@ -0,0 +1,20 @@
|
||||
[gd_scene format=3 uid="uid://byh115n12sgvt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d0tvtt4eu8jmt" path="res://art/block/portal.png" id="1_eumkw"]
|
||||
[ext_resource type="Script" uid="uid://bjbxktiuqlh1f" path="res://teleporter.gd" id="1_tuehi"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eumkw"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="Teleporter" type="Node2D" unique_id=1201409437]
|
||||
script = ExtResource("1_tuehi")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
||||
texture = ExtResource("1_eumkw")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/Area2D" unique_id=1560168165]
|
||||
shape = SubResource("RectangleShape2D_eumkw")
|
||||
|
||||
[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_contact"]
|
||||
Reference in new issue
Block a user