diff options
| author | nokoe <nokoe@mailbox.org> | 2024-06-28 14:42:03 +0200 |
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2024-06-28 14:43:15 +0200 |
| commit | 45abc0fd1630d930bcd56d1a107a29e298d8e20f (patch) | |
| tree | f7b49242ef849984f1a51ab63bde8fbf8f25e420 /client/player/player.gd | |
| parent | d3f8dd31f27d2677f4a96af490c94e5530c6214c (diff) | |
| download | hurrycurry-45abc0fd1630d930bcd56d1a107a29e298d8e20f.tar hurrycurry-45abc0fd1630d930bcd56d1a107a29e298d8e20f.tar.bz2 hurrycurry-45abc0fd1630d930bcd56d1a107a29e298d8e20f.tar.zst | |
add item messages
Diffstat (limited to 'client/player/player.gd')
| -rw-r--r-- | client/player/player.gd | 6 |
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 |