Hacks for rpi.

master
q3k 2013-07-14 18:24:16 +02:00
parent 64ef9b6ae6
commit 640587a46e
1 changed files with 6 additions and 1 deletions

View File

@ -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()