Added a new platformer demo entirely made with visual script.

This commit is contained in:
Juan Linietsky
2016-08-31 17:57:08 -03:00
parent 00f5f054ad
commit bccc1cd127
42 changed files with 2037 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ func _set_status(text,isok):
func _on_host_pressed():
var host = NetworkedMultiplayerENet.new()
host.set_compression_mode(NetworkedMultiplayerENet.COMPRESS_RANGE_CODER)
var err = host.create_server(DEFAULT_PORT,1) # max: 1 peer, since it's a 2 players game
if (err!=OK):
#is another server running?
@@ -85,6 +86,7 @@ func _on_join_pressed():
return
var host = NetworkedMultiplayerENet.new()
host.set_compression_mode(NetworkedMultiplayerENet.COMPRESS_RANGE_CODER)
host.create_client(ip,DEFAULT_PORT)
get_tree().set_network_peer(host)