diff options
author | nokoe <nokoe@mailbox.org> | 2025-09-29 23:57:44 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-09-29 23:59:01 +0200 |
commit | 4d883a67ef81ef9428e39734664430724668077f (patch) | |
tree | dc453df04c6f987326ea386e618b8886df99897c /client/game.gd | |
parent | 9d2966c97b0022d48baf4d95d12926be9dc5750c (diff) | |
download | hurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar hurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar.bz2 hurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar.zst |
use deep fryer basket; persist item rotation on counters
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd index efb75c9f..7289eed0 100644 --- a/client/game.gd +++ b/client/game.gd @@ -189,6 +189,9 @@ func handle_packet(p): var i = ItemFactory.produce(item_names[p.item], t.item_base) i.animate_spawn() i.position = t.item_base.global_position + i.rotation.y = t.item_base.global_rotation.y + PI + i.position_target = i.position + i.rotation_target = i.rotation.y add_child(i) i.name = item_names[p.item] t.set_item(i) @@ -198,6 +201,9 @@ func handle_packet(p): var i = ItemFactory.produce(item_names[p.item], pl.hand_base[h]) i.animate_spawn() i.position = pl.hand_base[h].global_position + i.rotation.y = pl.hand_base[h].global_rotation.y + i.position_target = i.position + i.rotation_target = i.rotation.y add_child(i) i.name = item_names[p.item] pl.set_item(i, h) |