Camera and outline rect functions
This commit is contained in:
3
index.ts
3
index.ts
@@ -10,6 +10,7 @@ import { repl, resetRepl } from "./repl.ts";
|
||||
import { addToContext } from "./runcode.ts";
|
||||
import { editmode } from "./editmode.ts";
|
||||
import { refreshMouse } from "./mouse.ts";
|
||||
import { camera } from "./builtins.ts";
|
||||
|
||||
// deno-lint-ignore no-explicit-any
|
||||
let game: any = null;
|
||||
@@ -48,10 +49,12 @@ await mainloop(async (_t) => {
|
||||
frame();
|
||||
} else if (mode === "repl") {
|
||||
repl.update();
|
||||
camera(0, 0);
|
||||
repl.draw();
|
||||
frame();
|
||||
} else if (mode === "edit") {
|
||||
await editmode.update();
|
||||
camera(0, 0);
|
||||
editmode.draw();
|
||||
frame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user