diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-02 23:12:33 -0700 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-02 23:12:33 -0700 |
| commit | 4d51178d32e07c070c61aa7567856bec7eda3639 (patch) | |
| tree | 7ef4884dd2221340f9c1ed96bd0f52c761ae9fb0 /scripts/boats | |
| parent | 0939d84e611f1c63fd5805339a2f777251fb1653 (diff) | |
hit/killsounds, swimming, main menu, fixed explosion physics
Diffstat (limited to 'scripts/boats')
| -rw-r--r-- | scripts/boats/Gunboat.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/boats/Gunboat.gd b/scripts/boats/Gunboat.gd index 1e8dd49..6f4f807 100644 --- a/scripts/boats/Gunboat.gd +++ b/scripts/boats/Gunboat.gd @@ -85,10 +85,13 @@ func direction_input(fwd,bwd,left,right,_left,_right): rudder = left - right mainsheet = _left - _right -func damage(amount, type, shooter, extra = ""): +remotesync func damage(amount, _type, shooter, extra = ""): health -= amount print(health) +remotesync func net_apply_impulse(impulse_v): + apply_central_impulse(impulse_v) + # Called every frame. 'delta' is the elapsed time since the previous frame. func _physics_process(delta): $Mast/Sail.scale.y = sail_out |
