From eed1540c9364c4ef040a3862a33ee38dbe724cc4 Mon Sep 17 00:00:00 2001 From: debugman18 Date: Sun, 18 Oct 2026 01:35:58 -0500 Subject: [PATCH] Added signs --- art/sign.png | Bin 0 -> 458 bytes art/sign.png.import | 43 +++++++++++++++++++++++++++++++++++++++++++ sign.gd | 14 ++++++++++++++ sign.gd.uid | 1 + sign.tscn | 30 ++++++++++++++++++++++++++++++ world.tscn | 5 +++++ 6 files changed, 93 insertions(+) create mode 100644 art/sign.png create mode 100644 art/sign.png.import create mode 100644 sign.gd create mode 100644 sign.gd.uid create mode 100644 sign.tscn diff --git a/art/sign.png b/art/sign.png new file mode 100644 index 0000000000000000000000000000000000000000..117f93fc70268505b67546af1cbc27832e604f3d GIT binary patch literal 458 zcmeAS@N?(olHy`uVBq!ia0vp^0zj<5!3-pI!a4o{DaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(eheJOMr-u0Xmf)6&*N2FM86c>EqnT}hB%@c;k+8631$egX113p^r=85sBu zgD~Uq{1qucLCF%=h?3y^w370~qEv=}#LT=BJwMkF1yemkJwqd5M)wk+q8+Ibo@t(* zS_~XO4l9EcBP#M}Gi0Lk85 zK5Od9?cDJ|rk|&aV~9rZ+kQr_0|p$-{@?%Gi$9Jk<@wgw+H}@b^l4Rxd=1mCDF^zb z4lLq$p_KiQ void: + print("INTERACT MAN") + %Dialogue.show_text(sign_text).dismiss_after(text_dismiss_timer) + +func _ready() -> void: + pass + +func _process(delta: float) -> void: + pass diff --git a/sign.gd.uid b/sign.gd.uid new file mode 100644 index 0000000..1dc2179 --- /dev/null +++ b/sign.gd.uid @@ -0,0 +1 @@ +uid://dvo0iux2pcggi diff --git a/sign.tscn b/sign.tscn new file mode 100644 index 0000000..bfa3a2f --- /dev/null +++ b/sign.tscn @@ -0,0 +1,30 @@ +[gd_scene format=3 uid="uid://bnkbkfto83owf"] + +[ext_resource type="Script" uid="uid://dvo0iux2pcggi" path="res://sign.gd" id="1_q3tny"] +[ext_resource type="Texture2D" uid="uid://djlqqmqpsd0kc" path="res://art/sign.png" id="2_q3tny"] +[ext_resource type="Texture2D" uid="uid://d0cd1alr8k706" path="res://art/interact_button.png" id="3_e8cgb"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_eumkw"] +size = Vector2(26, 32) + +[node name="Sign" type="Node2D" unique_id=1201409437] +script = ExtResource("1_q3tny") + +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216] +position = Vector2(0, -16) +texture = ExtResource("2_q3tny") + +[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") + +[node name="ButtonPrompt" type="Sprite2D" parent="Sprite2D" unique_id=1864817335] +visible = false +position = Vector2(0, -8.000002) +scale = Vector2(0.8, 0.8) +texture = ExtResource("3_e8cgb") + +[connection signal="interacted" from="." to="." method="_on_interacted"] +[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_approach"] +[connection signal="body_exited" from="Sprite2D/Area2D" to="." method="_on_abandon"] diff --git a/world.tscn b/world.tscn index 87e7b87..9deb5ba 100644 --- a/world.tscn +++ b/world.tscn @@ -23,6 +23,7 @@ [ext_resource type="PackedScene" uid="uid://b5ssjxl1l3fx0" path="res://hidden_vertical_long_block.tscn" id="20_26xuy"] [ext_resource type="PackedScene" uid="uid://ch0417iiviaxb" path="res://hidden_horizontal_long_block.tscn" id="21_bc84e"] [ext_resource type="PackedScene" uid="uid://be757jqlv785s" path="res://hidden_coin.tscn" id="22_wukud"] +[ext_resource type="PackedScene" uid="uid://bnkbkfto83owf" path="res://sign.tscn" id="24_wjb0r"] [node name="World" type="Node2D" unique_id=1327991900] process_mode = 1 @@ -587,4 +588,8 @@ position = Vector2(247, -1261.3452) [node name="HiddenVerticalLongBlock10" parent="." unique_id=170869907 instance=ExtResource("20_26xuy")] position = Vector2(247, -1371.6267) +[node name="Sign" parent="." unique_id=916197061 instance=ExtResource("24_wjb0r")] +position = Vector2(-4799, 365.30762) +sign_text = "TEST SIGN 1" + [connection signal="toggled" from="CanvasLayer/MusicButton" to="CanvasLayer/MusicButton" method="_on_toggled"]