Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions raylib.js
Original file line number Diff line number Diff line change
@@ -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.