mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-22 15:44:21 +00:00
42 lines
2.2 KiB
Text
42 lines
2.2 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://qtk4tm6l367w"]
|
|
|
|
[ext_resource type="Script" path="res://interface/ghost/ghost.gd" id="1_1bq64"]
|
|
[ext_resource type="PackedScene" uid="uid://c3p0jdf7416ac" path="res://converters/full_converter_shape.tscn" id="2_bo8dp"]
|
|
[ext_resource type="PackedScene" uid="uid://cgpjm06hleokk" path="res://interface/ghost/precise_touch_placer.tscn" id="3_70ahv"]
|
|
[ext_resource type="PackedScene" uid="uid://dhrtfpyfsdf3f" path="res://interface/ghost/instantiator.tscn" id="4_f7fmh"]
|
|
[ext_resource type="PackedScene" uid="uid://cm3gvvcsh8i7a" path="res://interface/ghost/overlap_checker.tscn" id="5_twds7"]
|
|
[ext_resource type="PackedScene" uid="uid://bu3alsb2ufaxu" path="res://interface/ghost/overlap_freer.tscn" id="6_y1rxa"]
|
|
[ext_resource type="PackedScene" uid="uid://blk5uc5ta7nwq" path="res://interface/ghost/placeable_area_checker.tscn" id="7_wemqm"]
|
|
|
|
[node name="Ghost" type="Area2D"]
|
|
collision_layer = 0
|
|
collision_mask = 4294967295
|
|
input_pickable = false
|
|
script = ExtResource("1_1bq64")
|
|
valid_color = null
|
|
invalid_color = null
|
|
collision_mask_prevent_placement = 16
|
|
collision_mask_delete_placement = 4
|
|
|
|
[node name="PlacementShape" parent="." instance=ExtResource("2_bo8dp")]
|
|
scale = Vector2(2.5, 2.5)
|
|
|
|
[node name="PreviewSprite" type="Sprite2D" parent="PlacementShape"]
|
|
modulate = Color(1, 1, 1, 0.5)
|
|
z_index = 10
|
|
|
|
[node name="PreciseTouchPlacer" parent="." instance=ExtResource("3_70ahv")]
|
|
|
|
[node name="Instantiator" parent="." instance=ExtResource("4_f7fmh")]
|
|
|
|
[node name="OverlapChecker" parent="." instance=ExtResource("5_twds7")]
|
|
|
|
[node name="OverlapFreer" parent="." instance=ExtResource("6_y1rxa")]
|
|
|
|
[node name="PlaceableAreaChecker" parent="." instance=ExtResource("7_wemqm")]
|
|
|
|
[connection signal="area_entered" from="." to="PlaceableAreaChecker" method="update_is_overlapping_with"]
|
|
[connection signal="area_exited" from="." to="PlaceableAreaChecker" method="update_is_overlapping_with"]
|
|
[connection signal="body_entered" from="." to="OverlapChecker" method="update_is_overlapping_with"]
|
|
[connection signal="body_exited" from="." to="OverlapChecker" method="update_is_overlapping_with"]
|
|
[connection signal="overlap_changing" from="OverlapChecker" to="." method="update_state"]
|