module WritingAdditions::EnDoom

Overview

"The colorful screen shown when Doom exits."

Direct including types

Defined in:

write/write_texture.cr

Instance Method Summary

Instance Method Detail

def write(file : String | Path) : UInt32 #

Writes a endoom given an output io and returns the size of the written lump

Writes a endoom in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
my_wad.endoom.write("Path/To/my_endoom.lmp")

def write(io : IO) : UInt32 #

Writes a endoom given an output io and returns the size of the written lump

Writes a endoom in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/my_endoom.lmp", "w+") do |file|
  my_wad.endoom.write(file)
end