Skip to main content
Module

x/oid/mod.ts

oidoid 2D game engine.
Go to Latest
import * as oid from "https://deno.land/x/oid@v0.0.4/mod.ts";

Functions

Tightly coupled to ShaderLayout and GLSL.

A camera filling or just barely not filling the viewport in scaled pixels. gets cam wh in level pixels level wh

Canvas must be an integer multiple of camera.

Interfaces

A partial mapping from gmaepad event button / axes indices to logical button. Multiple indices can map to the same logical button.

A partial mapping from keyboard event key string to logical button. Multiple keys can map to the same logical button.

A partial mapping from pointer event button to logical button. Multiple pointer buttons can map to the same logical button.