MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / render

Method render

src/engineObject.js:371–375  ·  view source on GitHub ↗

Render the object, draws a tile by default, automatically called each frame, sorted by renderOrder

()

Source from the content-addressed store, hash-verified

369
370 /** Render the object, draws a tile by default, automatically called each frame, sorted by renderOrder */
371 render()
372 {
373 // default object render
374 drawTile(this.pos, this.drawSize || this.size, this.tileInfo, this.color, this.angle, this.mirror, this.additiveColor);
375 }
376
377 /** Destroy this object, destroy its children, detach its parent, and mark it for removal
378 * @param {boolean} [immediate] - should attached effects be allowed to die off? */

Callers

nothing calls this directly

Calls 1

drawTileFunction · 0.85

Tested by

no test coverage detected