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

Entity
class Entity

Anything that isn't text

EntityEvent
class EntityEvent

Event that creates an entity

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

Event
class Event

Represents single thing that can happen on the screen

FlashingTextEvent
class FlashingTextEvent

Flashing text.

Image
class Image

An image, backed by an SDL surface

ImageEntity
class ImageEntity

An image entity

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)

Window
class Window

The window class

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

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
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(T evts)

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

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

doRender
bool doRender;

Whether to render to an image sequence

endTime
float endTime;

Time to end at

entities
Entity[string] entities;

Entities, indexed by ID

events
Event[] events;

List of events queued

frameCount
ulong frameCount;

Current frame count.

music
Mix_Music* music;

Music being played

offset
float offset;

Offset to start at

start
SysTime start;

When the program was started

window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

Meta