Add inventory.py

main
Filips Kalniņš 2026-02-11 06:49:08 +00:00
parent e4bc5f0f5b
commit 5755236da5
1 changed files with 15 additions and 0 deletions

15
inventory.py 100644
View File

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