summaryrefslogtreecommitdiffstats
path: root/text_bubble.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-12-04 22:04:59 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-12-04 22:04:59 +0200
commit872d1f9200584973b2156102f0e7f03b3d271687 (patch)
tree0177cda13042d5e0b924d8dbe74f444a89034c27 /text_bubble.gd
parentf97ee1d7c41e07296b6c31b9b85aa299805ba2f1 (diff)
Add initial dialogue system
Diffstat (limited to 'text_bubble.gd')
-rw-r--r--text_bubble.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/text_bubble.gd b/text_bubble.gd
new file mode 100644
index 0000000..545f469
--- /dev/null
+++ b/text_bubble.gd
@@ -0,0 +1,10 @@
+class_name TextBubble
+extends Node2D
+
+@export var text: String
+
+func _ready() -> void:
+ $Label.text = text
+
+func size() -> Vector2:
+ return $ColorRect.size