Add inventory.py
parent
e4bc5f0f5b
commit
5755236da5
|
|
@ -0,0 +1,15 @@
|
|||
import pygame
|
||||
from settings import *
|
||||
|
||||
class Inventory:
|
||||
def __init__(self):
|
||||
self.items = []
|
||||
|
||||
def add_item(self, item_id, amount=1):
|
||||
self.items.append((item_id, amount))
|
||||
|
||||
def draw(self, screen):
|
||||
# Simple debug text
|
||||
font = pygame.font.SysFont("consolas", 18)
|
||||
text = font.render(f"Inventory: {len(self.items)} items", True, (255, 255, 255))
|
||||
screen.blit(text, (10, 50))
|
||||
Loading…
Reference in New Issue