Exemplo n.º 1
0
			if key == pygame.K_z and ship.mode == 1:
				holdingFire = False
	
	#responses to keys; i.e. movement and turning
	
	
	if movement:
		ship.move(100)
	if turnright:
		ship.turn(+math.pi*3/2.0,tick)
	if turnleft:
		ship.turn(-math.pi*3/2.0, tick)
	if holdingFire and firingDelay == 0:
		firingDelay = 10
		ship_laser_list += ship.shoot()
	ship.check_bounds()
	ship.update(tick)
	if firingDelay > 0:
		firingDelay -= 1
	
	
	
	screen.fill((0,0,0))
	
	#pygame.draw.rect(screen, (200,100,100), [200, 200, 3, 3])

		
	
	
	# Ship Graphics