You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
437 B
TypeScript

/// <reference types="vite/client" />
declare global {
interface Moveable {
x: number // position on x-axis (fixed for the player)
y: number // position on y-axis (fixed for the player)
lastDir: number // store last face direction
vx: number // velocity on the x-axis
vy: number // velocity on the y-axis
}
interface Npc extends Moveable {
hostile: boolean
inventory: InventoryItem[]
}
}
export {}