diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-24 22:09:46 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-24 22:09:46 +0200 |
commit | 5137dd483921d27f501db198e55b5d563db0ab7a (patch) | |
tree | ced8127392cccc3436a47e6671ea72d2ea4aced3 | |
parent | 144a4cf77ab18c73fd7b1fdbc390445056a615fb (diff) | |
download | hurrycurry-5137dd483921d27f501db198e55b5d563db0ab7a.tar hurrycurry-5137dd483921d27f501db198e55b5d563db0ab7a.tar.bz2 hurrycurry-5137dd483921d27f501db198e55b5d563db0ab7a.tar.zst |
rotate object in food processor
-rw-r--r-- | client/game.gd | 8 | ||||
-rw-r--r-- | client/map/items/food_processor.gd | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/client/game.gd b/client/game.gd index 70a3a371..48f393e0 100644 --- a/client/game.gd +++ b/client/game.gd @@ -29,7 +29,7 @@ func _ready(): Global.error_message = reason; $SceneTransition.instant_to("res://menu/error_menu.tscn") ) - + await mp.init if mp.player_id == -1: push_error("multiplayer has not been initialized") @@ -94,18 +94,18 @@ func _ready(): ) mp.connect("put_item", func(tile: Vector2i, player: int): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] var p: Player = players[player] p.put_item(t) ) mp.connect("set_progress", func(tile: Vector2i, progress: float, warn: bool): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.progress(progress, warn) ) mp.connect("set_finished", func(tile: Vector2i, warn: bool): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.finish(warn) ) diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index 1be3d591..f2226e5f 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -27,6 +27,7 @@ func progress(p: float, warn: bool): super(p, warn) processing.emitting = true processing.rotation.y += p * TAU + base.rotation.y += p * TAU func finish(warn: bool): super(warn) |