31 lines
616 B
Python
31 lines
616 B
Python
import pygame
|
|
import pygame_menu
|
|
pygame.init()
|
|
|
|
screen_width = 800
|
|
screen_height = 600
|
|
|
|
screen = pygame.display.set_mode((screen_width, screen_height))
|
|
color = (128, 128, 128)
|
|
screen.fill(color)
|
|
|
|
pygame.display.set_caption('Dice Roll')
|
|
clock = pygame.time.Clock()
|
|
|
|
def set_number_dice(value: str, die_number: int):
|
|
# Do the job here !
|
|
pass
|
|
def set_dice_sides(value: str, sides: int):
|
|
# Do the job here !
|
|
pass
|
|
|
|
|
|
|
|
run = True
|
|
while run == True:
|
|
for event in pygame.event.get():
|
|
if event.type == pygame.QUIT:
|
|
run = False
|
|
pygame.display.flip()
|
|
clock.tick(60)
|
|
pygame.quit() |