Milestone 8 preparations 1

This commit is contained in:
Patrick_Pluto 2024-08-13 20:43:54 +02:00
commit c9211b444e
26 changed files with 101 additions and 104 deletions

View file

@ -69,11 +69,11 @@ func _physics_process(delta):
position.y += 1
if Input.is_action_pressed("click") and $hammer.rotation_degrees.x > 0:
$hammer.rotation_degrees.x -= 5
$hammer.rotation_degrees.x -= 10
for id in Game.player_list:
Client.rpc_id(id,"sync_hammer",name, $hammer.rotation)
elif $hammer.rotation_degrees.x < 90 and !Input.is_action_pressed("click"):
$hammer.rotation_degrees.x += 5
$hammer.rotation_degrees.x += 10
for id in Game.player_list:
Client.rpc_id(id,"sync_hammer",name, $hammer.rotation)