Remove trailing space characters in the formatting script

This commit is contained in:
Aaron Franke
2020-06-17 14:53:10 -04:00
parent d3317cc91d
commit 35d44b5d85
36 changed files with 53 additions and 51 deletions

View File

@@ -2,7 +2,7 @@
A multiplayer demo of the classical pong game.
One of the players should press "host", while the
other should select the address and press "join".
other should select the address and press "join".
Language: GDScript

View File

@@ -14,7 +14,7 @@ func _process(delta):
# even if it's sightly out of sync between them,
# so each player sees the motion as smooth and not jerky.
if not stopped:
translate(_speed * delta * direction)
translate(_speed * delta * direction)
# Check screen bounds to make ball bounce.
var ball_pos = position

View File

@@ -18,7 +18,7 @@ func _ready():
# while all nodes in clients inherit from puppet.
# set_network_master is tree-recursive by default.
if get_tree().is_network_server():
# For the server, give control of player 2 to the other peer.
# For the server, give control of player 2 to the other peer.
player2.set_network_master(get_tree().get_network_connected_peers()[0])
else:
# For the client, give control of player 2 to itself.