Exemple #1
0
	def start_game(self, team):
		log_stats('play')
		print self.team1, self.team2
		teams = [('Player 1', self.team1), ('Player 2', self.team2)]
		mapsel = MapSelection(self.screen, 'map_new.txt')
		mapsel.loop()
		start_game(self.screen, mapsel.mapname, teams)
Exemple #2
0
	def host_game(self, team):
		log_stats('host')
		mapsel = MapSelection(self.screen, 'map_new.txt', network=True, network_host=True, ip = self.ip)
		mapsel.loop()
		host_game(self.screen, int(mapsel.port_input.value), mapsel.mapname, team)
Exemple #3
0
	def join_game(self, team):
		log_stats('join')
		mapsel = MapSelection(self.screen, network=True)
		mapsel.loop()
		join_game(self.screen, mapsel.ip_input.value, int(mapsel.port_input.value), team)