Printing of size

master
LEdoian 3 years ago
parent 4e6d04c9e5
commit 86028073b8

@ -126,6 +126,10 @@ class Visualisation:
self.order = ['@', '+', '?', '-', '/', '*']
self.squares = None
self.draw()
if ev.type == pygame.KEYDOWN and ev.key == pygame.K_p:
sz = self.mapfile.size
sqsz = max(sz / CELLS, 4096)
print(f"Each square represents {sqsz} bytes.")
if ev.type == pygame.USEREVENT:
self.reload()

Loading…
Cancel
Save