mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
9 lines (6 loc) • 303 B
text/typescript
import store from "@lincode/reactivity"
import { HEIGHT, WIDTH } from "../globals"
const [_setResolution, getResolution] = store<[number, number]>([WIDTH, HEIGHT])
export { getResolution }
export const setResolution = ([w, h]: [number, number]) =>
_setResolution([Math.max(w, 1), Math.max(h, 1)])