Ejemplo n.º 1
0
Archivo: Main.py Proyecto: Sorryony/RPg
# deathSound = pygame.mixer.Sound('death_sound.wav')

# Background Music
music = pygame.mixer.music.load('assets/Sound/Risen.wav')
pygame.mixer.music.play(-1)


# Frame rate
clock = pygame.time.Clock()



# Globals
start_intro = Menu.Start(450, 75, 100, 50)
exit_intro = Menu.Exit(450, 200, 100, 50)
Cii_intro = Menu.Character_image_intro(450, 125, 100, 50)
font = pygame.font.SysFont("Sans", 30, True, True)
Chosen = Player.MainPlayer(0, 215, 50, 37)
inventory = Inventory.Inventory(0, 20, 0)
m_spawn = random.randrange(400, 700, 50)
Skeleton = Monsters.Enemy(m_spawn, 217, 22, 33, 1150)
Skeleton2 = Monsters.Enemy(m_spawn, 217, 22, 33, 1150)
bone = Items.Item(500, 217)
bullets = []
attacks = []
monsters = []
num_monsters = 3
monsters_on_screen = 0
items = []