Skip to content

Commit

Permalink
Allow dynamically setting resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
superlou committed Jun 8, 2023
1 parent 2c18f66 commit aab9321
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 65 deletions.
113 changes: 65 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/app2/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export let resolution = [960, 540];
export let multisampling = 1;

import Fps from "fps.js";
Expand Down Expand Up @@ -63,6 +62,7 @@ watch_json("data/debug.json", data => {
});

export function init() {
set_resolution(960, 540);
}

let i = 0;
Expand Down
Loading

0 comments on commit aab9321

Please sign in to comment.