Hacks for rpi.
parent
64ef9b6ae6
commit
640587a46e
7
host.py
7
host.py
|
@ -1,12 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import os
|
||||
import time
|
||||
import random
|
||||
import pygame
|
||||
|
||||
from pygame.locals import *
|
||||
|
||||
os.environ["SDL_VIDEODRIVER"] = "dummy"
|
||||
|
||||
# "we'll fix it in post!"
|
||||
MAPPING = [
|
||||
8,
|
||||
|
@ -68,7 +71,9 @@ play_again_at = time.time()
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pygame.init()
|
||||
pygame.mixer.init()
|
||||
pygame.display.init()
|
||||
pygame.display.set_mode((1,1))
|
||||
for s in SOUNDS:
|
||||
s.create()
|
||||
pygame.joystick.init()
|
||||
|
|
Loading…
Reference in New Issue