ID:155812
 
I was wondering if anyone has created a library that can be used when your world.icon_size is set to a non-default value.

For example, I created the following project to test out icon_size set to 8.
world
icon_size = 8

atom
movable
var
density_width = 1
density_height = 1

mob
icon = 'base.dmi'
density = 1

o1x1
icon = 'o1x1.dmi'
o2x1
icon = 'o2x1.dmi'
density_width = 2
o2x2
icon = 'o2x2.dmi'
density_width = 2
density_height = 2
o3x2
icon = 'o3x2.dmi'
density_width = 3
density_height = 2

Upon testing, I noted that all objects which are dense are only dense in the bottom left corner (somewhat as I expected), additionally all the range()/view()hearers() and similar procs only check for that corner of the mob when listing things in range. So in order to get all my standard functions working properly with this new tile size, I'd have to write several of my own functions to take into account these "larger than a tile" atoms.

Has anyone made a library that does this? I searched around both the resources and forums and couldn't dig anything up.


~Polatrite~

Edit: Just noticed that Shadowdarke's "BigAtom" library WAS updated recently. I'm going to check it and see if it works with world.icon_size that is not 32x32.