diff --git a/src/ui/window.ts b/src/ui/window.ts new file mode 100644 index 0000000..b1010ea --- /dev/null +++ b/src/ui/window.ts @@ -0,0 +1,14 @@ +export default class Window { + element: HTMLDialogElement = document.createElement("dialog"); + initial_size = { w: 500, h: 500 } as const; + + constructor() { + this.element.style.backgroundColor = "black"; + this.element.style.width = `${this.initial_size.w}`; + this.element.style.height = `${this.initial_size.h}`; + } + + start(): HTMLDialogElement { + return this.element; + } +}