WMICraft/stats.py

16 lines
469 B
Python
Raw Normal View History

2022-03-08 12:11:22 +01:00
import pygame
from constants import COLUMNS, GRID_CELL_PADDING, GRID_CELL_WIDTH, BORDER_WIDTH
from helpers import draw_text
class Stats:
def __init__(self):
self.grid = []
def draw(self, screen, font):
x = (GRID_CELL_PADDING + GRID_CELL_WIDTH) * COLUMNS + BORDER_WIDTH + 20
y = 8
pygame.draw.rect(screen, (255, 255, 255), pygame.Rect(x, y, 370, 782))
draw_text('GAME STATS', font, (0, 0, 0), screen, x + 120, y + 30)