feat: small world and interactibles
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m25s

This commit is contained in:
2025-06-28 10:23:35 +02:00
parent 00037d0270
commit e59f0e9e6a
2769 changed files with 52148 additions and 10 deletions

View File

@ -0,0 +1,17 @@
extends Area2D
class_name Interactible
@export_file("*.tscn") var scene_to_trigger : String
@onready var rich_text_label: RichTextLabel = $RichTextLabel
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
rich_text_label.visible = false
func _on_body_entered(body: Node2D) -> void:
rich_text_label.visible = true
func _on_body_exited(body: Node2D) -> void:
rich_text_label.visible = false

View File

@ -0,0 +1 @@
uid://dl18owt8pb11r

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=3 uid="uid://cjo7jm55bkqk3"]
[ext_resource type="Script" uid="uid://dl18owt8pb11r" path="res://scenes/interactibles/interactible.gd" id="1_7dp4u"]
[ext_resource type="FontFile" uid="uid://detctsm8oy251" path="res://assets/PansyHand/pansyhand.ttf" id="2_u3pc4"]
[sub_resource type="CircleShape2D" id="CircleShape2D_oyfc1"]
radius = 20.0
[node name="Interactible" type="Area2D"]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_7dp4u")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_oyfc1")
[node name="RichTextLabel" type="RichTextLabel" parent="."]
z_index = 1000
offset_left = 6.0
offset_top = -17.0
offset_right = 128.0
offset_bottom = 23.0
theme_override_fonts/normal_font = ExtResource("2_u3pc4")
text = "INTERACT"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]