Bomb/main.py
2021-10-30 19:38:33 +02:00

22 lines
439 B
Python

import pygame
from bomb import Bomb
pygame.init()
pygame.mixer.pre_init(44100, 16, 2)
pygame.font.init()
size = (824, 674)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("BOH(Brunova Osobna Hra)")
running = True
clock = pygame.time.Clock()
bomb = Bomb(pygame, screen)
while True:
bomb.drawstuff()
bomb.ticktimer += clock.tick(60)
bomb.beep()
if bomb.getevents() == False:
break
pygame.quit()