Engine.terminal¶
The game console.
Functions¶
Engine.terminal.print¶
Engine.terminal.print(color, format, ...)
Engine.terminal.print(format, ...)
Prints a message in the console. color is optional: a table with a, r, g and b, each
from 0 to 1. With more than one argument after the color, the message is formatted with {}
placeholders (see Formatting).
Engine.terminal.print("Hello!")
Engine.terminal.print({a = 1, r = 1, g = 0.3, b = 0.3}, "{} lives left", lives)