mirror of
https://github.com/PlayableIntelligence/game-creator.git
synced 2026-09-19 07:34:10 +08:00
ac482c0f78
Implement the complete scaffold for Trump vs Biden 3D arena battle: - Arena: 20x12 dark platform with glowing edges, atmospheric lighting/fog - Player (Trump): Left/right movement, projectile throw with cooldown, gesture animations (point/clap/dance/twist), placeholder orange box - Opponent (Biden): AI-controlled sinusoidal movement with random offset, periodic projectile throws aimed at player, placeholder blue box - Projectiles: Glowing spheres with point lights, sphere-vs-sphere collision - ProjectileManager: Spawn/update/collision pool with PLAYER_HIT/OPPONENT_HIT events - Health system: 5 lives, hearts HUD, game over on depletion - Scoring: Points per hit, combo tracking with timeout, combo bonus at 3+ - Input: Keyboard (A/D + Space) + mobile touch (left/right half + tap) - HUD: Health hearts, score, combo counter below Play.fun safe zone - Game over overlay with score/best, restart via button/Space/Enter - Full EventBus events including spectacle hooks for visual polish step - render_game_to_text() and advanceTime() for AI agent testing - Design brief with expression maps for both characters Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
755 B
JSON
27 lines
755 B
JSON
{
|
|
"name": "trump-vs-biden",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "npx playwright test",
|
|
"test:headed": "npx playwright test --headed",
|
|
"test:ui": "npx playwright test --ui",
|
|
"test:update-snapshots": "npx playwright test --update-snapshots",
|
|
"verify": "node scripts/verify-runtime.mjs",
|
|
"validate": "node scripts/validate-architecture.mjs",
|
|
"iterate": "node scripts/iterate-client.js --url http://localhost:3001"
|
|
},
|
|
"dependencies": {
|
|
"three": "^0.183.0",
|
|
"@strudel/web": "^1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^7.3.1",
|
|
"@playwright/test": "^1.58.0",
|
|
"@axe-core/playwright": "^4.11.0"
|
|
}
|
|
}
|