Files
the-last-startyper/package.json
T
pastilhas 7ee42a8dc1 feat: implement complete score tracking system
- Track score (starts at 0)
- +1 score and +1 correct for each correct character typed
- -1 score and +1 missed for each wrong character typed
- +1 deaths for each collision with ship
- Score resets when game starts
- All metrics exposed through ScoreManager
- Updated example app UI with colorful scoreboard showing:
  - Time (gray)
  - Score (neutral)
  - Correct (green)
  - Missed (yellow)
  - Deaths (red)
  - Keystrokes (neutral)
- Uses grid layout for organized metric display
- Score cannot go below 0 (clamped to minimum)
2025-11-03 23:04:26 +00:00

62 lines
1.6 KiB
JSON
Executable File

{
"name": "@vimazing/typing-chud",
"version": "0.1.0",
"description": "TODO: Game description",
"author": "André Padez <andre.padez@gmail.com>",
"keywords": [
"vim",
"react",
"hooks",
"game",
"typescript",
"vimazing"
],
"repository": {
"type": "git",
"url": "git+https://github.com/vimazing/typing-chud.git"
},
"bugs": {
"url": "https://github.com/vimazing/typing-chud/issues"
},
"homepage": "https://github.com/vimazing/typing-chud#readme",
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./useGame": {
"import": "./dist/useGame/index.js",
"types": "./dist/useGame/index.d.ts"
},
"./useScore": {
"import": "./dist/useScore/index.js",
"types": "./dist/useScore/index.d.ts"
},
"./*": {
"import": "./dist/*.js",
"types": "./dist/*.d.ts"
},
"./*.css": "./dist/*.css"
},
"files": [
"dist"
],
"scripts": {
"dev": "cd example && bun run dev",
"build": "tsc --outDir dist --declaration --emitDeclarationOnly false && node -e \"const fs = require('node:fs'); fs.mkdirSync('dist', { recursive: true }); fs.copyFileSync('src/game.css', 'dist/game.css'); fs.copyFileSync('package.json', 'dist/package.json');\"",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"react": "^19.1.1"
},
"devDependencies": {
"@types/node": "^24.7.2",
"@types/react": "^19.2.2",
"typescript": "~5.9.3"
}
}