Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Anterix Launch: Spectrum Defender is a retro arcade game combining Asteroids (rotation/thrust mechanics) with Space Invaders (wave-based enemies). The entire game is contained in a single HTML file (
index.html) with embedded CSS and JavaScript - no build step or external dependencies required.
# Open directly in browser - no build required start index.html # Windows open index.html # macOS xdg-open index.html # Linux
For DALL-E generated pixel art sprites (optional enhancement):
cd scripts pip install -r requirements.txt set OPENAI_API_KEY=your-key-here # Windows export OPENAI_API_KEY=your-key-here # Linux/macOS python generate_sprites.py
The game is intentionally architected as a single
index.html file (~100KB) containing:
The code is organized into clearly labeled sections:
CONFIG object): All tunable game parametersUtils class): Math helpers, collision detection, screen wrappingAudioManager class): Web Audio API procedural 8-bit soundsUtils: Static helpers for distance, collision, screen wrappingAudioManager: Procedural sound generation (no audio files)Player: Ship with Asteroids-style rotation/thrust physicsSignalDisruptor, DataPacket, NetworkNode, LegacyTower, SpectrumJammerBandwidthBoost, SignalShield, SpectrumSpread, NetworkSurgeAll game balance parameters are centralized in the
CONFIG object at the top of the script: