diff options
| author | tpart <tpart120@proton.me> | 2024-09-04 21:04:07 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-09-04 21:06:41 +0200 |
| commit | 9c953125445760dbf5c0562854caaa0d1866fda9 (patch) | |
| tree | 98dd3f567d65efc0dcaf8d09dcec7bf84b16fe2e /client/player | |
| parent | 55922742c94d8abca2361377ca616ea5143731c2 (diff) | |
| download | hurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar hurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar.bz2 hurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar.zst | |
Add new progress protocol; Add knife model; Add knife to cutting board; Add cutting animation; Bump protocol version
Diffstat (limited to 'client/player')
| -rw-r--r-- | client/player/controllable_player.gd | 4 | ||||
| -rw-r--r-- | client/player/player.gd | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index c654c070..81315630 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -136,8 +136,8 @@ func aabb_point_distance(mi: Vector2, ma: Vector2, p: Vector2) -> float: func update_position(_new_position: Vector2, _new_rotation: float, _new_boosting: bool): pass -func progress(p: float, warn: bool): - super(p, warn) +func progress(position__: float, speed: float, warn: bool): + super(position__, speed, warn) Input.start_joy_vibration(0, 0.5, 0.1, 0.15) func put_item(tile: Tile): diff --git a/client/player/player.gd b/client/player/player.gd index 43d7dd7f..17db85a9 100644 --- a/client/player/player.gd +++ b/client/player/player.gd @@ -107,9 +107,9 @@ func remove_item() -> Item: character.holding = false return i -func progress(p: float, warn: bool): +func progress(position__: float, speed: float, warn: bool): if hand != null: - hand.progress(p, warn) + hand.progress(position__, speed, warn) func finish(warn: bool): if hand != null: |