WAD::Demo
Inherits WritingAdditions::Demo < Reference < Object
A doom demo which saves player input states
Constructors
Parses an file in a demo format
Reads an file and puts out a demo:
my_demo = WAD::Demo.parse("Path/To/Demo")
Parses an io in a demo format
Reads an io and puts out a demo:
File.open("Path/To/Demo") do |file|
my_demo = WAD::Demo.parse(file)
end
Class methods
Checks if the demo is of doom version 1,9
Returns true if an io is a demo:
File.open("Path/To/Demo") do |file|
if WAD::Demo.is_demo(file)
puts "Is Demo"
else
puts "Is not Demo"
end
Instance methods
Returns a copy of self with all instance variables cloned.
Always 1 for Doom 2
Always 1 for Doom 2
non-zero value implies use of -fast
non-zero value implies use of -fast
109 for version 1.9
109 for version 1.9
A series of player actions for each tic encoded in 4 bytes.
A series of player actions for each tic encoded in 4 bytes.
The map
The map
1 means deathmatch, 2 altdeath, 0 is used for single-player or cooperative multi-player
1 means deathmatch, 2 altdeath, 0 is used for single-player or cooperative multi-player
non-zero value implies use of -nomonsters
non-zero value implies use of -nomonsters
Set to 1 if player 1 present
Set to 1 if player 1 present
Set to 2 if player 1 present
Set to 2 if player 1 present
Set to 3 if player 1 present
Set to 3 if player 1 present
Set to 4 if player 1 present
Set to 4 if player 1 present
Which player's point of view to use, zero-indexed (0 means player 1)
Which player's point of view to use, zero-indexed (0 means player 1)
non-zero value implies use of -respawn
non-zero value implies use of -respawn
Values 0 through 4 indicate "I'm too young to die" through "Nightmare!", respectively.
Values 0 through 4 indicate "I'm too young to die" through "Nightmare!", respectively.