texit

The main texit module.

Modules

app
module texit.app

A few example programs using texit. Just run dub build with one of the follwing versions to see them

  • HelloWorld
  • RandomCharacters
  • ScrollingZooming
  • AudioExample

Public Imports

std.datetime.systime
public import std.datetime.systime, arsd.simpledisplay, arsd.simpleaudio, arsd.vorbis;
Undocumented in source.
arsd.simpledisplay
public import std.datetime.systime, arsd.simpledisplay, arsd.simpleaudio, arsd.vorbis;
Undocumented in source.
arsd.simpleaudio
public import std.datetime.systime, arsd.simpledisplay, arsd.simpleaudio, arsd.vorbis;
Undocumented in source.
arsd.vorbis
public import std.datetime.systime, arsd.simpledisplay, arsd.simpleaudio, arsd.vorbis;
Undocumented in source.

Members

Aliases

Easing
alias Easing = float function(float)
Undocumented in source.

Functions

ease
float ease(float x)

Ease a value given an easing from https://easings.net/ and also easeLinear (which returns the given value)

easing
Easing easing()

Takes an easing and returns a function pointer to it

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

Returns a charmap given a directory and a char size

Mixin templates

Texit
mixintemplate Texit(string charmap, int charSize, float scale, int worldWidth, int worldHeight, int width, int height, string title)

The main texit declaration

Structs

Tile
struct Tile

A single tile in the world

Vector
struct Vector

Simple vector struct

Variables

translation
Vector translation;

How much to translate the screen by

zoom
float zoom;

How much to zoom in/out

Meta