tryting to get logic to work
This commit is contained in:
parent
e02f3a9ae6
commit
4c9b1e328a
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user