Add terrain biomes jumping and extensible gathering professions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export type InputAction = 'north' | 'south' | 'west' | 'east' | 'attack' | 'gather' | 'inventory' | 'heal' | 'return';
|
||||
export type InputAction = 'north' | 'south' | 'west' | 'east' | 'attack' | 'gather' | 'inventory' | 'heal' | 'return' | 'jump';
|
||||
const bindings: Readonly<Record<string, InputAction>> = {
|
||||
KeyW:'north', ArrowUp:'north', KeyS:'south', ArrowDown:'south', KeyA:'west', ArrowLeft:'west',
|
||||
KeyD:'east', ArrowRight:'east', Space:'attack', KeyE:'gather', KeyI:'inventory'
|
||||
KeyD:'east', ArrowRight:'east', Space:'jump', KeyF:'attack', KeyE:'gather', KeyI:'inventory'
|
||||
};
|
||||
export function isEditing(target: EventTarget | null) {
|
||||
return target instanceof HTMLElement && !!target.closest('input,select,textarea,[contenteditable]:not([contenteditable="false"])');
|
||||
|
||||
Reference in New Issue
Block a user