- 19 TypeScript modules under src/ (constants, entities, room, game, render) - Canvas 2D rendering with dark fantasy palette - Room-based navigation, random 7x7 map generation - Two combat modes: ranged (pistol) and melee (knife) - Wall collision with door opening support - Minimap, HP bar, enemy AI - Bun build pipeline: src/main.ts -> dist/main.js + dist/index.html
13 lines
375 B
JSON
13 lines
375 B
JSON
{
|
|
"name": "dungeon-crawl",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun build src/main.ts --outdir dist --target browser --watch",
|
|
"build": "bun run build.ts",
|
|
"serve": "bun build src/main.ts --outdir dist --target browser && cp src/index.html dist/",
|
|
"start": "bun run build && echo 'open dist/index.html'"
|
|
}
|
|
}
|