summaryrefslogtreecommitdiff
path: root/tools/createmap.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-11 23:00:41 +0100
committerdavidovski <david@davidovski.xyz>2023-07-11 23:00:41 +0100
commit9675503933d488736bb59f81337ab103fc0b2f57 (patch)
tree4398fab135cf83f9e890b5af055f811aeab0eb24 /tools/createmap.py
parentce892407370be42479bb05e9a2faa60a297c9886 (diff)
implement save on exit for editor
Diffstat (limited to 'tools/createmap.py')
-rwxr-xr-xtools/createmap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/createmap.py b/tools/createmap.py
index b5c5b2e..ed5715a 100755
--- a/tools/createmap.py
+++ b/tools/createmap.py
@@ -8,8 +8,8 @@ outfile = "map.tiles"
ATLASFILE = "atlas.png"
TILESIZE = 16
-WIDTH = 2**10
-HEIGHT = 2**10
+WIDTH = 64
+HEIGHT = 64
# create atlas bytes
image = Image.open(ATLASFILE).convert("RGBA")
@@ -40,7 +40,7 @@ with open(outfile, "wb") as file:
for y in range(HEIGHT):
for x in range(WIDTH):
- index = (x + y) % 5
+ index = 0;
file.write(index.to_bytes(tilebytes, 'big'));
file.write(TILESIZE.to_bytes(4, 'big'));