diff --git a/raylib.js b/raylib.js index 6e48efd..9c14e1b 100644 --- a/raylib.js +++ b/raylib.js @@ -129,6 +129,12 @@ class RaylibJs { GetScreenHeight() { return this.ctx.canvas.height; } + GetMonitorWidth(monitor){ + return window.innerWidth; + } + GetMonitorHeight(monitor){ + return window.innerHeight; + } GetFrameTime() { // TODO: This is a stopgap solution to prevent sudden jumps in dt when the user switches to a differen tab.