aboutsummaryrefslogtreecommitdiff
path: root/client/player/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/player/player.gd')
-rw-r--r--client/player/player.gd6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index 4806b19d..b20eba14 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -28,7 +28,8 @@ var position_ = Vector2(0, 0)
var position_anim = Vector2(0, 0)
var character: Character = preload("res://player/character/character.tscn").instantiate()
-var bubble: ChatBubble = preload("res://player/chat_bubble.tscn").instantiate()
+var chat_bubble: ChatBubble = preload("res://player/chat_bubble.tscn").instantiate()
+var item_bubble: ItemBubble = preload("res://player/item_bubble.tscn").instantiate()
var hand: Item = null
var hand_base: Node3D = Node3D.new()
@@ -47,7 +48,8 @@ func _init(_id: int, new_name: String, pos: Vector2, new_character_idx: int, new
hand_base.position = HAND_BASE_POSITION
add_child(hand_base)
- add_child(bubble)
+ add_child(chat_bubble)
+ add_child(item_bubble)
character_idx = new_character_idx