-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOld Code.txt
More file actions
74 lines (66 loc) · 2.78 KB
/
Copy pathOld Code.txt
File metadata and controls
74 lines (66 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
if card1selected and cardString == "attack" and mouse_down and click_timer <= 0:
player_two_hp -= card1
text2 = font.render(str(player_two_hp), True, 'white')
textRect2 = text2.get_rect()
textRect2.center = (1025, 90)
card1selected = False
card1rect.y += 10
click_timer = 30
if card2selected and cardString2 == "attack" and mouse_down and click_timer <= 0:
player_two_hp -= card2
text2 = font.render(str(player_two_hp), True, 'white')
textRect2 = text2.get_rect()
textRect2.center = (1025, 90)
card2selected = False
card2rect.y += 10
click_timer = 30
if card3selected and cardString3 == "attack" and mouse_down and click_timer <= 0:
player_two_hp -= card3
text2 = font.render(str(player_two_hp), True, 'white')
textRect2 = text2.get_rect()
textRect2.center = (1025, 90)
card3selected = False
card3rect.y += 10
click_timer = 30
if card1selected and cardString == "shield" and mouse_down and click_timer <= 0:
player_one_shield += card1
text3 = font.render(str(player_one_shield), True, 'white')
textRect3 = text3.get_rect()
textRect3.center = (230, 190)
card1selected = False
card1rect.y += 10
click_timer = 30
if card2selected and cardString2 == "shield" and mouse_down and click_timer <= 0:
player_one_shield += card2
text3 = font.render(str(player_one_shield), True, 'white')
textRect3 = text3.get_rect()
textRect3.center = (230, 190)
card2selected = False
card2rect.y += 10
click_timer = 30
if card3selected and cardString3 == "shield" and mouse_down and click_timer <= 0:
player_one_shield += card3
text3 = font.render(str(player_one_shield), True, 'white')
textRect3 = text3.get_rect()
textRect3.center = (230, 190)
card3selected = False
card3rect.y += 10
click_timer = 30
if card1selected and cardString == "energy" and mouse_down and click_timer <= 0:
player_one_energy += card1
text5 = font.render(str(player_one_energy), True, 'white')
card1selected = False
card1rect.y += 10
click_timer = 30
if card2selected and cardString2 == "energy" and mouse_down and click_timer <= 0:
player_one_energy += card2
text5 = font.render(str(player_one_energy), True, 'white')
card2selected = False
card2rect.y += 10
click_timer = 30
if card3selected and cardString3 == "energy" and mouse_down and click_timer <= 0:
player_one_energy += card3
text5 = font.render(str(player_one_energy), True, 'white')
card3selected = False
card3rect.y += 10
click_timer = 30