Texit

The main texit declaration

Members

Aliases

WH
alias WH = WORLD_HEIGHT
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.

Classes

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

Event
class Event

Represents single thing that can appear or happen on the screen

FlashingTextEvent
class FlashingTextEvent

Flashing text.

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Functions

audio
void audio(string path)

Plays OGG audio

main
void main()
Undocumented in source. Be warned that the author may not have intended to support it.
mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

queue
void queue(Event e)

Queues an event

Manifest constants

HEIGHT
enum HEIGHT;
Undocumented in source.
WIDTH
enum WIDTH;
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.

Variables

aot
AudioOutputThread* aot;
Undocumented in source.
chars
bool[charSize][charSize][256] chars;

Bitmap of each character

events
Event[] events;

List of events queued

offset
float offset;

Offset to start at

start
SysTime start;

When the program was started

textures
uint[1000] textures;
Undocumented in source.
window
SimpleWindow window;
Undocumented in source.
world
Tile[worldHeight][worldWidth] world;

The world

Meta