Dynablaster

From ModdingWiki
Jump to navigation Jump to search
Dynablaster
Dynablaster.png
Mod-Dynablaster.png
Levels?X mark.svg Not editable
Tiles?Tick.png Editable
Sprites?Tick.png Editable
Fullscreen?X mark.svg Not editable
Sound?X mark.svg Not editable
Music?X mark.svg Not editable
Text?X mark.svg Not editable
Story/cutscenes?X mark.svg Not editable
UI/menus?X mark.svg Not editable
Demos?Unknown

File formats

The IMG files in the GFX directory are sprite sheets in LBM Format with most having an obfuscated header.

The following C# program will create corrected copies of them as .LBM files:

using System.Buffers.Binary;
using System.Text;

var paths = Directory.GetFiles(Environment.CurrentDirectory, "*.img");

foreach (var path in paths)
{
    using var src = File.OpenRead(path);
    using var tgt = File.Create(Path.ChangeExtension(path, ".lbm"));

    src.CopyTo(tgt);

    tgt.Position = default;

    using var writer = new BinaryWriter(tgt, Encoding.Default, true);

    var length = (int)src.Length - 8;

    if (BitConverter.IsLittleEndian)
    {
        length = BinaryPrimitives.ReverseEndianness(length);
    }

    writer.Write(Encoding.ASCII.GetBytes("FORM"));
    writer.Write(length);
    writer.Write(Encoding.ASCII.GetBytes("ILBM"));
    writer.Write(Encoding.ASCII.GetBytes("BMHD"));
}

After that, all it takes is an LBM-editing program (Deluxe Paint for DOS, if everything else fails) and you can edit all the sprites and intro graphics.

Pictured on the right: Dynablaster with bombs replaced by pumpkins for Halloween season, also making a pun in Polish (pumpkin is 'dynia', making 'dyniablaster'.)