tryting to get logic to work

This commit is contained in:
Stephen Deaton 2024-06-18 13:22:44 -04:00
parent e02f3a9ae6
commit 4c9b1e328a

View File

@ -9,7 +9,8 @@ import random
win_width = 600 win_width = 600
win_height = 480 win_height = 480
win_bg_color = (0, 0, 0) win_bg_color = (0, 0, 0)
dice_results = [] dice_results = [4, 6, 8, 10, 12,20]
dice_count = [ 0, 1]
def roll_dice(): def roll_dice():
print("Type of dice: D", side_dropdown.getSelected()) print("Type of dice: D", side_dropdown.getSelected())
@ -31,10 +32,12 @@ side_dropdown = Dropdown(
choices=[ choices=[
'D4', 'D4',
'D6', 'D6',
'D8',
'D10',
'D12', 'D12',
'D20', 'D20',
], ],
borderRadius=3, colour=pygame.Color(200, 200, 200), values=[4, 6, 12, 20], direction='down', textHAlign='left' borderRadius=3, colour=pygame.Color(200, 200, 200), values=[4, 6, 8, 10, 12, 20], direction='down', textHAlign='left'
) )
numdice_dropdown = Dropdown( numdice_dropdown = Dropdown(