Projectdd/inventory.py

16 lines
425 B
Python

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))