diff options
author | davidovski <david@davidovski.xyz> | 2023-07-11 23:00:41 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-11 23:00:41 +0100 |
commit | 9675503933d488736bb59f81337ab103fc0b2f57 (patch) | |
tree | 4398fab135cf83f9e890b5af055f811aeab0eb24 /tools | |
parent | ce892407370be42479bb05e9a2faa60a297c9886 (diff) |
implement save on exit for editor
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/createmap.py | 6 |
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')); |