Recreate the 1981 arcade game <Star Castle> with p5.js
"Recreate the 1981 arcade game <Star Castle> with p5.js: 1. Restore the core gameplay: Control the laser turret to rotate and shoot, destroy the layered approaching alien castles, dodge enemy laser/missile counterattacks, and protect the bottom city; 2. Recreate the original minimalist sci-fi visuals with pure vector lines, no external creatives, restore turret charging shots, city health, and increasing level difficulty; 3. Keyboard and mouse (arrow keys for rotation + spacebar for firing), adapting to the original operation feedback; 4. Runs smoothly at 60 FPS, a single HTML file can be played directly, black background with bright lines fitting the 80s arcade texture, and code comments are clear for easy adjustment of turret firing rate." ### Summary 1. Core Replicas: Restores the classic mechanics of rotating and shooting turrets in the interstellar castle, destroying alien castles, and dodging counterattacks to protect the city; 2. Visual Style: Drawn with pure vector lines, no external creatives, accurately replicating the minimalist sci-fi arcade visuals of the 1981 original; 3. Technology Implementation: Developed with a single p5.js file, featuring high frame rate smoothness, compatible with classic keyboard and mouse controls, and easy to adjust game difficulty parameters.
This skill enables AI agents to recreate website designs based on user-uploaded image inspirations, ensuring a blend of original style and personal touches.
AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.