-
Notifications
You must be signed in to change notification settings - Fork 0
/
Inventory.py
29 lines (23 loc) · 1.02 KB
/
Inventory.py
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
import pygame
def showinv(screen, invimg, playerinventory, pokedict, charsp, sqsp, bulbsp, pikasp):
textX = 100
textY = 128
running2 = True
while running2:
screen.blit(invimg, (50, 67))
font = pygame.font.Font('PokemonGb-RAeo.ttf', 20)
for i in playerinventory:
font1 = font.render(pokedict[i], True, (255, 255, 255))
screen.blit(font1, (textX, textY + i * 50))
if pokedict[i] == "Pikachu":
screen.blit(pikasp,(350,textY + i * 50 - 25))
elif pokedict[i] == "Charmander":
screen.blit(charsp, (350, textY + i * 50 - 25))
elif pokedict[i] == "Squirtle":
screen.blit(sqsp, (350, textY + i * 50 - 25))
elif pokedict[i] == "Bulbasaur":
screen.blit(bulbsp, (350, textY + i * 50 - 25))
for event3 in pygame.event.get():
if event3.type == pygame.KEYDOWN:
running2 = False
pygame.display.update()