Apps::MapViewer
An app used for viewing maps
To use, call Apps::MapViewer.run(wad, map)
To use in the command line, call Apps::MapViewer.run_cli
and use -w and -m
Constants
RESX = 1000
RESY = 1000
VERSION = "1.0.0"
Class methods
draw_grid(grid_size)
Draws a grid with size grid_size
draw_texture_poly(texture : RL::Texture2D, points : Array(RL::Vector2), texcoords : Array(RL::Vector2), tint : RL::Color)
Draws a polygon
run(input_file : String, input_map : String = "")
Runs the map viewer given a wad path and a map name
Runs the map viewer given a wad and a map name
run_cli
Runs the map viewer with wad and map defined in the command line -w Path/To/Wad -m MapName (not required) -h (Shows the help)