Update main.py
This commit is contained in:
parent
d08274c2f6
commit
a35dcfb823
1 changed files with 414 additions and 411 deletions
3
main.py
3
main.py
|
|
@ -5,10 +5,13 @@ import time
|
||||||
import random
|
import random
|
||||||
from classes import *
|
from classes import *
|
||||||
from viecher import *
|
from viecher import *
|
||||||
|
from pygame import mixer
|
||||||
fps = 60
|
fps = 60
|
||||||
|
|
||||||
def setUp(config):
|
def setUp(config):
|
||||||
pygame.init()
|
pygame.init()
|
||||||
|
mixer.music.load('audio/music/thebritons(1.1).mp3')
|
||||||
|
mixer.music.play(-1)
|
||||||
if config["fullscreen"]:
|
if config["fullscreen"]:
|
||||||
screen = pygame.display.set_mode(config["res"], pygame.FULLSCREEN)
|
screen = pygame.display.set_mode(config["res"], pygame.FULLSCREEN)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue