Playscii Class
Definition
Section titled “Definition”Playscii converter. Check this excellent ascii editor out at http://vectorpoem.com/playscii/
public class PlaysciiInheritance object
Constructors
Section titled “Constructors”Playscii()
Section titled “Playscii()”public Playscii()Fields
Section titled “Fields”charset
Section titled “charset”Name of the font file.
public string charsetframes
Section titled “frames”Hold all the animation frames.
public Playscii.Frame[] framesheight
Section titled “height”Surface height.
public int heightpalette
Section titled “palette”Name of the palette file.
public string paletteSurface width.
public int widthMethods
Section titled “Methods”ToScreenSurface(string, IFont, string, string)
Section titled “ToScreenSurface(string, IFont, string, string)”Converts a Playscii file to a SadConsole ScreenSurface.
public static ScreenSurface ToScreenSurface(string fileName, IFont font, string paletteFileName = "", string zipArchiveName = "")Parameters
Section titled “Parameters”fileName string
Name and path of the Playscii file (give only file name if zipArchiveName is used).
font IFont
IFont to be used when converting the Playscii file.
paletteFileName string
Path to an alternative palette file rather than the one specified in the playscii records.
zipArchiveName string
If specified, the playscii file will be read from this zip archive.
Returns
Section titled “Returns”ScreenSurface
ScreenSurface containing the first frame from the Playscii file.
Remarks
Section titled “Remarks”SadConsole does not support all the Playscii features at the moment, so the conversion will not be perfect.
Do not use tile rotation and set Z-Depth to 0 on all Playscii layers.
Transparent glyph foreground is fine, but it will not cut through the ColoredGlyphBase background like it does in Playscii.