From 93a660e8d3f2fe7fa06d4066b2a74bc84347978b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 14 Sep 2025 09:23:58 +0200 Subject: [PATCH] feat(assets): add constant with the size of blocks in the sprite texture. --- assets/def.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/def.go b/assets/def.go index 4524c96..8c6691a 100644 --- a/assets/def.go +++ b/assets/def.go @@ -9,6 +9,8 @@ import ( //go:embed sprites.png var Sprite []byte +const BLOCK_TILE_SIZE = 16 + var Font = font.TileFont{ Charmap: map[rune]byte{ 'a': 0x20,