Module | Console2d |
In: |
Console.cpp
|
This module contains functions used when creating text-based games.
HORIZONTAL | = | H | Use this when attempting to select an horizontal line. | |
VERTICAL | = | V | Use this when attempting to select a vertical line. | |
LEFT | = | L | Use this when you want to draw something alligned on the left. | |
RIGHT | = | R | Use this when you want to draw something alligned on the right. |
Sets Console2d’s color.
/* call-seq: color=(col) Sets Console2d's color. */ VALUE rubyConsole2dSetColor(VALUE self, VALUE col)
Fills a line, either horizontally or vertically (depending on the given mode), starting from the given pos, with the +adv+th character, drawing a text.
/* call-seq: fill_line(mode, pos, adv, txt) Fills a line, either horizontally or vertically (depending on the given mode), starting from the given pos, with the +adv+th character, drawing a text. */ VALUE rubyConsole2dFillLine(VALUE self, VALUE mode, VALUE pos, VALUE adv, VALUE txt)
Prints some text, either alligned on the left or on the right (this is set with mode).
/* call-seq: print(x, y, mode, txt) Prints some text, either alligned on the left or on the right (this is set with mode). */ VALUE rubyConsole2dPrint(VALUE self, VALUE x, VALUE y, VALUE mode, VALUE txt)
Draws a line in a given color.
/* call-seq: set_line_color(y, col) Draws a line in a given color. */ VALUE rubyConsole2dSetLineColor(VALUE self, VALUE y, VALUE col)