diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-27 00:55:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-27 00:55:23 +0200 |
commit | 9a5eb8ddf73fecc0ef5907983e136a1018937621 (patch) | |
tree | 3c692f6e7702c59abffa19c7b5c1da868b0f0c7b /client/game.gd | |
parent | 2ff484a85dec4abed71071ba509ac5cd307ff2f9 (diff) | |
download | hurrycurry-9a5eb8ddf73fecc0ef5907983e136a1018937621.tar hurrycurry-9a5eb8ddf73fecc0ef5907983e136a1018937621.tar.bz2 hurrycurry-9a5eb8ddf73fecc0ef5907983e136a1018937621.tar.zst |
Add client cli tool to render tiles/items to PNG
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd index 1a5e8ff6..9117be18 100644 --- a/client/game.gd +++ b/client/game.gd @@ -183,6 +183,7 @@ func handle_packet(p): if "tile" in p.location: var t: Tile = map.get_tile_instance(p.location.tile) var i = ItemFactory.produce(item_names[p.item], t.item_base) + i.animate_spawn() i.position = t.item_base.global_position add_child(i) i.name = item_names[p.item] @@ -191,6 +192,7 @@ func handle_packet(p): var pl: Player = players[p.location.player[0]] var h = p.location.player[1] var i = ItemFactory.produce(item_names[p.item], pl.hand_base[h]) + i.animate_spawn() i.position = pl.hand_base[h].global_position add_child(i) i.name = item_names[p.item] |