UNPKG

retrolib

Version:

Render low-res scenes to the canvas in a retro 8-bit era style. Aseprite exported animation wrapper, scene management, sound and image management, particle support.

30 lines 1.27 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import Scene from './scene'; /** * Dialog scene flavour: slowly display specified text and when the Rect * width is filled, wrap to the next line and continue. Also pause when * the Rect is fully filled waiting for input to continue. */ var Dialog = /** @class */ (function (_super) { __extends(Dialog, _super); function Dialog() { return _super !== null && _super.apply(this, arguments) || this; } return Dialog; }(Scene)); export { Dialog }; //# sourceMappingURL=dialog.js.map