S | |
Semi-internal constants for ut namespace, ut | |
setBackground, Tile | |
setCacheEnabled, Engine | |
setChar, Tile | |
setColor, Tile | |
setGrey, Tile | |
setKeyRepeatInterval, ut | |
setMaskFunc, Engine | |
setRenderer, Viewport | |
setShaderFunc, Engine | |
setTileFunc, Engine | |
setWorldSize, Engine | |
T | |
Tile | |
U | |
unicodetiles.js | |
unsafePut, Viewport | |
update, Engine | |
updateStyle, Viewport | |
ut | |
V | |
VERSION, ut | |
Viewport | |
W | |
WebGLRenderer |
Sets the background color of this tile.
ut.Tile.prototype.setBackground = function( r, g, b )
Enables or disables the usage of tile cache.
ut.Engine.prototype.setCacheEnabled = function( mode )
Sets the character of this tile.
ut.Tile.prototype.setChar = function( ch )
Sets the foreground color of this tile.
ut.Tile.prototype.setColor = function( r, g, b )
Sets the foreground color to the given shade (0-255) of grey.
ut.Tile.prototype.setGrey = function( grey )
Sets the interval when user’s onKeyDown handler is called when a key is held down.
ut.setKeyRepeatInterval = function( milliseconds )
Sets the function to be called to fetch mask information according to coordinates.
ut.Engine.prototype.setMaskFunc = function( func )
Switch renderer at runtime.
this.setRenderer = function( newrenderer )
Sets the function to be called to post-process / shade each visible tile.
ut.Engine.prototype.setShaderFunc = function( func )
Sets the function to be called with coordinates to fetch each tile.
ut.Engine.prototype.setTileFunc = function( func, effect, duration )
Tiles outside of the range x = [0,width[; y = [0,height[ are not fetched.
ut.Engine.prototype.setWorldSize = function( width, height )
Constructs a new Tile object.
ut.Tile = function( ch, r, g, b, br, bg, bb )
Puts a tile to the given coordinates.
ut.Viewport.prototype.unsafePut = function( tile, x, y )
Updates the viewport according to the given player coordinates.
ut.Engine.prototype.update = function( x, y )
If the style of the parent element is modified, this needs to be called.
this.updateStyle = function( updateRenderer )
Constructs a new Viewport object.
ut.Viewport = function( elem, w, h, renderer, squarify )