示例#1
0
def start(ship, fps, total_frames, screen_size, start_sprite, exit_sprite, title_sprite):

	ship.ammo = 100

	start_game = controls(ship, fps, total_frames, screen_size, start_sprite, exit_sprite)

	off_screen(screen_size)		
	background(fps, total_frames, screen_size)
	start_animation(ship, start_sprite, exit_sprite, title_sprite)


	return start_game
示例#2
0
	def setUp(self):
		self.smartproxy_pid = process.background("/usr/bin/twistd -l log/smartproxy.log -n -y fixtures/smartproxy.tac")
		assert process.wait_for_connect("localhost", 22008), "Smartproxy didn't start"