Skip to content

Playscii Class

Playscii converter. Check this excellent ascii editor out at http://vectorpoem.com/playscii/

C#
public class Playscii

Inheritance object

C#
public Playscii()

Name of the font file.

C#
public string charset

Hold all the animation frames.

C#
public Playscii.Frame[] frames

Surface height.

C#
public int height

Name of the palette file.

C#
public string palette

Surface width.

C#
public int width

ToScreenSurface(string, IFont, string, string)

Section titled “ToScreenSurface(string, IFont, string, string)”

Converts a Playscii file to a SadConsole ScreenSurface.

C#
public static ScreenSurface ToScreenSurface(string fileName, IFont font, string paletteFileName = "", string zipArchiveName = "")

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.

ScreenSurface
ScreenSurface containing the first frame from the Playscii file.

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.