mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Remove trailing space characters in the formatting script
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user