Red can go on bar as well now

This commit is contained in:
Alexander Munch-Hansen 2018-04-14 22:53:49 +02:00
parent 716413e2b6
commit 1d9c94896d

View File

@ -153,7 +153,7 @@ class Board_painter:
if chosen == 0: if chosen == 0:
x = 525 x = 525
y = 350 y = 350
elif chosen == 26: elif chosen == 25:
x = 525 x = 525
y = 50 y = 50
else: else:
@ -277,7 +277,7 @@ class Board_painter:
# Have some check if we're looking for either rects in the bottom or top, # Have some check if we're looking for either rects in the bottom or top,
# instead of having both here # instead of having both here
neg_tester = [rect.collidepoint(x,y-30) for rect in enemy_rects] neg_tester = [rect.collidepoint(x,y-30) for rect in enemy_rects]
pos_tester = [rect.collidepoint(x,y+40) for rect in enemy_rects] pos_tester = [rect.collidepoint(x,y+30) for rect in enemy_rects]
print("Neg tester:",neg_tester) print("Neg tester:",neg_tester)
print("Pos tester:",pos_tester) print("Pos tester:",pos_tester)
if any(neg_tester): if any(neg_tester):