Once a time, just for a fun, I opened "autosetup.conf" which for now only contains one setup - "editor.zoom_tilesize: X", where X is only intended to be one of specific values: 4, 8, 16, 32. So I started messing with it and replacing it with some values unintended to be supported by the game.
For example, here's original view of the level with 'tile_size = 32':
Here's what it looks like with 'tile_size = 5':
Then here's 'tile_size = 30':
And last, 'tile_size = 13':
As you can see, it really messes with the sprites since they were not supposed to be shrunk to these sizes.
What's even more interesting, when you try to zoom in/out by pressing +/- or just clicking on intended toolbox button, it doesn't fix to one of intended tile sizes just yet, it instead doubles the size or shrinks to twice smaller tiles depending on what are you doing. Like, if you did 'tile_size = 7' and then press +, 'tile_size' will be changed to 14 instead of closest intended number 8. But at least this number won't be able to go beyond 32 since it's the biggest number supported. I'm also fascinated that game easily handles dividing uneven value of tile size by 2. When I tried 'tile_size = 29' and pressed - in editor, value changed to 14. Good! But still strange behavior... Understandable, since Holger didn't except anybody to get in the conf and change number to those unsupported numbers
Intersting behavior of editor palette when palette tile size is wrong
Moderators: Flumminator, Zomis
Re: Intersting behavior of editor palette when palette tile size is wrong
This is really embarrassing!
I really must do a better sanity check for input values that come from outside the program!
I really must do a better sanity check for input values that come from outside the program!
Re: Intersting behavior of editor palette when palette tile size is wrong
Fixed now for this especially nasty case!