First commit 🎉

This commit is contained in:
Tony Bark 2025-07-17 01:49:18 -04:00
commit 43ea213f9b
728 changed files with 37080 additions and 0 deletions

View file

@ -0,0 +1,20 @@
@tool
@icon('res://addons/popochiu/icons/hotspot.png')
class_name PopochiuHotspot
extends PopochiuClickable
## Areas players can interact with (i.e. something that is part of the room's background: the sky,
## an entrance to a cave, a forest in the distance).
##
## When selecting a Hotspot in the scene tree (Scene dock), Popochiu will enable three buttons in
## the Canvas Editor Menu: Baseline, Walk to, and Interaction. This can be used to select the child
## nodes that allow to modify the position of the [member PopochiuClickable.baseline],
## the position of the [member PopochiuClickable.walk_to_point], and the position and the polygon
## points of the [b]$InteractionPolygon[/b] child.
#region Godot ######################################################################################
func _ready() -> void:
super()
add_to_group('hotspots')
#endregion

View file

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

View file

@ -0,0 +1,13 @@
[gd_scene load_steps=2 format=3 uid="uid://hfvjxu5map27"]
[ext_resource type="Script" path="res://addons/popochiu/engine/objects/hotspot/popochiu_hotspot.gd" id="1"]
[node name="Hotspot" type="Area2D"]
script = ExtResource("1")
cursor = 1
interaction_polygon = PackedVector2Array(-12, -12, 12, -12, 12, 12, -12, 12)
[node name="InteractionPolygon" type="CollisionPolygon2D" parent="."]
visible = false
modulate = Color(1, 0, 1, 1)
polygon = PackedVector2Array(-12, -12, 12, -12, 12, 12, -12, 12)