1
Programming / Re: Explosion Graphics
« on: September 11, 2014, 08:55:13 am »
I did start by doing that, but that approach commits you to using 128x64 images (or at least uniform images, I think). If SurfaceSet will actually cope perfectly well with different size images, or could easily be made to, then expanding x1.pck is the way to go. It's nice to use the x/y sprite dimension in SurfaceSet to determine the offset to display the sprite rather than use hardcoded 64/32. These are extremely useful features if you have spritesheets handy already, as converting e.g. 85x85 sheets to 128x64 is a soul destroying activity.
Unlike unit images and tiles, where uniformity is king for obvious reasons, it's OK I think to allow variation in size for explosion images.
Having control over anim speed and sprite density is also desirable if using nonstandard sprites, as you end up with very lame looking slow or sparse explosions unless the sprite is very similar to the original. Once I'd added that, I thought there was enough to justify moving explosion config out to a separate yaml entry, so that multiple items could share the same config without replicating it.
If you do want to keep explosions on the item config, it also would be nice to have a way of changing the default explosion(s) without needing update every item entry or being tied to sprites 0-7.
Anyway, these are just my ideas, not even arguments or strong opinions, so please feel free to ignore or use as you wish
Unlike unit images and tiles, where uniformity is king for obvious reasons, it's OK I think to allow variation in size for explosion images.
Having control over anim speed and sprite density is also desirable if using nonstandard sprites, as you end up with very lame looking slow or sparse explosions unless the sprite is very similar to the original. Once I'd added that, I thought there was enough to justify moving explosion config out to a separate yaml entry, so that multiple items could share the same config without replicating it.
If you do want to keep explosions on the item config, it also would be nice to have a way of changing the default explosion(s) without needing update every item entry or being tied to sprites 0-7.
Anyway, these are just my ideas, not even arguments or strong opinions, so please feel free to ignore or use as you wish