[game] Walk controls (unbound)

This commit is contained in:
John Doty 2023-07-07 06:21:01 -07:00
parent 895098e17f
commit c934914ac5
3 changed files with 97 additions and 4 deletions

11
src/input.ts Normal file
View file

@ -0,0 +1,11 @@
export const Button = {
Up: 0,
Down: 1,
Left: 2,
Right: 3,
} as const;
type Button = (typeof Button)[keyof typeof Button];
export function btn(_which: Button): boolean {
return false;
}