TileLayerTest

Tests graphics output, input events, collision, etc.

Constructors

this
this(int mapWidth, int mapHeight)
Undocumented in source.

Members

Functions

axisEvent
void axisEvent(uint id, BindingCode code, uint timestamp, float value)

Called when an axis is being operated. The id should be generated from a string, usually the name of the binding. code is a duplicate of the code used for fast lookup of the binding, which also contains other info (deviceID, etc). timestamp is the time lapsed since the start of the program, can be used to measure time between keypresses. value is the current position of the axis normalized between -1.0 and +1.0 for joysticks, and 0.0 and +1.0 for analog triggers.

controllerAdded
void controllerAdded(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
controllerRemoved
void controllerRemoved(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
keyEvent
void keyEvent(uint id, BindingCode code, uint timestamp, bool isPressed)

Called when a keybinding event is generated. The id should be generated from a string, usually the name of the binding. code is a duplicate of the code used for fast lookup of the binding, which also contains other info (deviceID, etc). timestamp is the time lapsed since the start of the program, can be used to measure time between keypresses. NOTE: Hat events on joysticks don't generate keyReleased events, instead they generate keyPressed events on release.

onCollision
void onCollision(ObjectCollisionEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
onQuit
void onQuit()
Undocumented in source. Be warned that the author may not have intended to support it.
whereTheMagicHappens
void whereTheMagicHappens()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

dlangMan
Bitmap8Bit dlangMan;
Undocumented in source.
dlangManCS
Bitmap1bit dlangManCS;
down
bool down;
Undocumented in source.
framecounter
int framecounter;
Undocumented in source.
ih
InputHandler ih;
Undocumented in source.
isRunning
bool isRunning;
left
bool left;
Undocumented in source.
ocd
ObjectCollisionDetector ocd;
Undocumented in source.
output
OutputScreen output;
Undocumented in source.
r
Raster r;
right
bool right;
Undocumented in source.
s
SpriteLayer s;
scrdown
bool scrdown;
scrleft
bool scrleft;
scrright
bool scrright;
scrup
bool scrup;
Undocumented in source.
t
TileLayer t;
Undocumented in source.
textLayer
TileLayer textLayer;
Undocumented in source.
theta
float theta;
Undocumented in source.
tiles
Bitmap8Bit[] tiles;
Undocumented in source.
tt
TransformableTileLayer!(Bitmap8Bit, 16, 16) tt;
up
bool up;
Undocumented in source.

Meta