├── .gitignore ├── favicon.svg ├── index.html ├── package.json ├── src ├── actions.ts ├── colors.ts ├── components │ ├── ai.ts │ ├── base-component.ts │ ├── consumable.ts │ ├── equipment.ts │ ├── equippable.ts │ ├── fighter.ts │ ├── inventory.ts │ └── level.ts ├── engine.ts ├── entity.ts ├── equipment-types.ts ├── exceptions.ts ├── game-map.ts ├── input-handler.ts ├── main.ts ├── message-log.ts ├── procgen.ts ├── render-functions.ts ├── screens │ ├── base-screen.ts │ ├── game-screen.ts │ └── main-menu.ts ├── tile-types.ts └── vite-env.d.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/favicon.svg -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /src/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/actions.ts -------------------------------------------------------------------------------- /src/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/colors.ts -------------------------------------------------------------------------------- /src/components/ai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/ai.ts -------------------------------------------------------------------------------- /src/components/base-component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/base-component.ts -------------------------------------------------------------------------------- /src/components/consumable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/consumable.ts -------------------------------------------------------------------------------- /src/components/equipment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/equipment.ts -------------------------------------------------------------------------------- /src/components/equippable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/equippable.ts -------------------------------------------------------------------------------- /src/components/fighter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/fighter.ts -------------------------------------------------------------------------------- /src/components/inventory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/inventory.ts -------------------------------------------------------------------------------- /src/components/level.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/components/level.ts -------------------------------------------------------------------------------- /src/engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/engine.ts -------------------------------------------------------------------------------- /src/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/entity.ts -------------------------------------------------------------------------------- /src/equipment-types.ts: -------------------------------------------------------------------------------- 1 | export enum EquipmentType { 2 | Weapon, 3 | Armor, 4 | } 5 | -------------------------------------------------------------------------------- /src/exceptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/exceptions.ts -------------------------------------------------------------------------------- /src/game-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/game-map.ts -------------------------------------------------------------------------------- /src/input-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/input-handler.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/message-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/message-log.ts -------------------------------------------------------------------------------- /src/procgen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/procgen.ts -------------------------------------------------------------------------------- /src/render-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/render-functions.ts -------------------------------------------------------------------------------- /src/screens/base-screen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/screens/base-screen.ts -------------------------------------------------------------------------------- /src/screens/game-screen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/screens/game-screen.ts -------------------------------------------------------------------------------- /src/screens/main-menu.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/screens/main-menu.ts -------------------------------------------------------------------------------- /src/tile-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/src/tile-types.ts -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bodiddlie/js-rogue-tutorial/HEAD/tsconfig.json --------------------------------------------------------------------------------