A 2048 puzzle game built with PixiJS 8 and TypeScript, using Vite as the toolchain and Bun as the package manager.
- Architecture — layered diagram and the engine↔game boundary
- Documentation standard — how this repo is documented
- Decisions — ADRs recording the why
- Bun — package manager and script runtime:
curl -fsSL https://bun.sh/install | bash
# Clone the repository
git clone <repository-url>
cd 2048_game
# Install dependencies
bun install# Start the dev server on http://localhost:3212
bun run dev
# Lint (oxlint) and type-check (tsc)
bun run lint
bun run typecheck
# Autofix lint + format (oxlint --fix + oxfmt)
bun run fix
# Run tests (bun run test:watch for watch mode)
bun run test
# Build for production / preview the build
bun run build
bun run previewsrc/engine/— reusable game-engine layer over PixiJS (navigation, audio, resize, layout)src/app/— the 2048 game: screens, popups, UI widgets, game statesrc/gen/— generated asset manifest (do not edit)raw-assets/— source assets, processed by AssetPack intopublic/assets/during dev/buildscripts/— AssetPack pipeline, Vite plugins, and git-hook tooling
See AGENTS.md for a more detailed architecture and tooling reference.
# Clean all build artifacts and dependencies
bun run clean
# Clean only generated assets
bun run clean:assetsPrivate project - All rights reserved