Tilorswift levels can now be loaded into the running game

This commit is contained in:
Mal
2023-09-17 14:18:21 +02:00
parent 8f087d3dd3
commit 593d323aff
11 changed files with 348 additions and 204 deletions

View File

@@ -4,11 +4,12 @@ import UserInterfaceElement from "./UserInterfaceElement.js";
export default class TextBox extends UserInterfaceElement
{
constructor(text, width, context)
constructor(text, width, context, paused = false)
{
super();
this.text = text;
this.width = width;
this.paused = paused;
this.colorText = 'red';
this.colorShadow = 'black';
this.colorBorder = 'black';
@@ -115,4 +116,4 @@ export default class TextBox extends UserInterfaceElement
return line;
}
}
}