Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 API Index
C
 CanvasRenderer
 clear, Viewport
 clone, Tile
 Constants, ut
 copy, Tile
 CSSCLASS, ut
D
 DOMRenderer
E
 Engine
F
 Functions
G
 get, Viewport
 getBackgroundHex, Tile
 getBackgroundJSON, Tile
 getBackgroundRGB, Tile
 getChar, Tile
 getColorHex, Tile
 getColorJSON, Tile
 getColorRGB, Tile
 getRendererString, Viewport
I
 initInput, ut
 input.js
 isKeyPressed, ut
K
 KEY_0, ut
 KEY_1, ut
 KEY_2, ut
 KEY_3, ut
 KEY_4, ut
 KEY_5, ut
 KEY_6, ut
 KEY_7, ut
 KEY_8, ut
 KEY_9, ut
 KEY_A, ut
 KEY_ALT, ut
 KEY_B, ut
 KEY_BACKSPACE, ut
 KEY_C, ut
 KEY_COMMA, ut
 KEY_CTRL, ut
 KEY_D, ut
 KEY_DASH, ut
 KEY_DOWN, ut
 KEY_E, ut
 KEY_ENTER, ut
 KEY_ESCAPE, ut
 KEY_F, ut
 KEY_F1, ut
 KEY_F10, ut
 KEY_F11, ut
 KEY_F12, ut
 KEY_F2, ut
 KEY_F3, ut
 KEY_F4, ut
 KEY_F5, ut
 KEY_F6, ut
 KEY_F7, ut
 KEY_F8, ut
 KEY_F9, ut
 KEY_G, ut
 KEY_H, ut
 KEY_I, ut
 KEY_J, ut
 KEY_K, ut
 KEY_L, ut
 KEY_LEFT, ut
 KEY_M, ut
 KEY_N, ut
 KEY_NUMPAD0, ut
 KEY_NUMPAD1, ut
 KEY_NUMPAD2, ut
 KEY_NUMPAD3, ut
 KEY_NUMPAD4, ut
 KEY_NUMPAD5, ut
 KEY_NUMPAD6, ut
 KEY_NUMPAD7, ut
 KEY_NUMPAD8, ut
 KEY_NUMPAD9, ut
 KEY_O, ut
 KEY_P, ut
 KEY_PERIOD, ut
 KEY_Q, ut
 KEY_R, ut
 KEY_RIGHT, ut
 KEY_S, ut
 KEY_SHIFT, ut
 KEY_SPACE, ut
 KEY_T, ut
 KEY_TAB, ut
 KEY_U, ut
 KEY_UP, ut
 KEY_V, ut
 KEY_W, ut
 KEY_X, ut
 KEY_Y, ut
 KEY_Z, ut
 Keycodes, ut
N
 NULLCHAR, ut
 NULLTILE, ut
P
 put, Viewport
 putString, Viewport
R
 render, Viewport
 resetBackground, Tile
 resetColor, Tile
Renders the Viewport into an HTML5 canvas element.
ut.Viewport.prototype.clear = function()
Clears the viewport buffer by assigning empty tiles.
ut.Tile.prototype.clone = function()
Returns a new copy of this tile.
ut.Tile.prototype.copy = function(other)
Makes this tile identical to the one supplied.
The CSS class name used for the tile engine element.
Renders the Viewport into DOM elements.
The tile engine itself.
ut.Engine = function(vp,
func,
w,
h)
Constructs a new Engine object.
ut.Viewport.prototype.get = function(x,
y)
Returns the tile in the given coordinates.
ut.Tile.prototype.getBackgroundHex = function()
Returns the hexadecimal representation of the background color
ut.Tile.prototype.getBackgroundJSON = function()
Returns the JSON representation of the background color, i.e.
ut.Tile.prototype.getBackgroundRGB = function()
Returns the CSS rgb(r,g,b) representation of the background color
ut.Tile.prototype.getChar = function()
Returns the character of this tile.
ut.Tile.prototype.getColorHex = function()
Returns the hexadecimal representation of the color
ut.Tile.prototype.getColorJSON = function()
Returns the JSON representation of the color, i.e.
ut.Tile.prototype.getColorRGB = function()
Returns the CSS rgb(r,g,b) representation of the color
ut.Viewport.prototype.getRendererString = function()
Gets the currently used renderer.
ut.initInput = function(onKeyDown,
onKeyUp)
Initilizes input by assigning default key handlers and optional user’s handlers.
This file contains a very simple input system.
ut.isKeyPressed = function(key)
Checks if given key is pressed down.
48
49
50
51
52
53
54
55
56
57
65
18
66
8
67
188
17
68
189
40
69
13
27
70
112
121
122
123
113
114
115
116
117
118
119
120
71
72
73
74
75
76
37
77
78
96
97
98
99
100
101
102
103
104
105
79
80
190
81
82
39
83
16
32
84
9
85
38
86
87
88
89
90
Character used when none is specified otherwise.
The tile used as placeholder for empty tile.
ut.Viewport.prototype.put = function(tile,
x,
y)
Puts a tile to the given coordinates.
ut.Viewport.prototype.putString = function(str,
x,
y,
r,
g,
b,
br,
bg,
bb)
Creates a row of tiles with the chars of the given string.
ut.Viewport.prototype.render = function()
Renders the buffer as html to the element specified at construction.
ut.Tile.prototype.resetBackground = function()
Clears the background color of this tile.
ut.Tile.prototype.resetColor = function()
Clears the color of this tile / assigns default color.
Close