5499b90390
- Introduced a minimal Entity-Component-System (ECS) framework in `ecs.ts` with basic entity management and component handling. - Created `World` class to manage entities and components, including methods for creating, adding, retrieving, and removing components. - Implemented unit tests for the `World` class in `ecs.test.ts` to ensure functionality. - Developed input handling with `InputSystem` to capture keyboard events. - Added `PhysicsSystem` for movement and collision detection. - Created `RenderSystem` to handle drawing entities on the canvas. - Set up a main game loop in `main.ts` to integrate systems and manage game state. - Added SVG icons and images for UI elements. - Included CSS styles for layout and theming. - Configured TypeScript settings in `tsconfig.json` for project compilation. Co-authored-by: Copilot <copilot@github.com>
20 lines
367 B
JSON
20 lines
367 B
JSON
{
|
|
"name": "client",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.0.10",
|
|
"vitest": "^1.6.0",
|
|
"jsdom": "^24.1.0"
|
|
}
|
|
}
|