👽 How AI Built "Alien Bomber"

A STEM Innovation Showcase - Demonstrating AI-Assisted Creative Coding

🎮 What You're Playing

Alien Bomber is a complete video game created through conversation with an AI assistant. No traditional coding knowledge was required—just clear descriptions of what the game should do!

🤖 How AI Coding Works

The Simple Process:
1. DESCRIBE what you want → 2. AI writes the code → 3. You test & refine → 4. Play!

🧩 Key Code Concepts (Made Simple)

1. Game Loop - The Heartbeat

function update() { clearScreen(); moveSpacecraft(); checkCollisions(); drawEverything(); repeat(); }

Like a flipbook animation—each frame creates smooth motion.

2. State Management - Game Modes

MENU → PLAYING → GAME_OVER/VICTORY → HIGH_SCORES

The game always knows which screen to show and what controls work.

3. Collision Detection - Did We Hit Something?

if (spacecraft.x < building.x + building.width && spacecraft.y > building.top) { BOOM! Game Over! }

4. Progressive Damage - 3 Hits to Destroy

building.hits++; // 1st hit: top 1/3 gone → 2nd hit: top 2/3 gone → 3rd hit: destroyed!

5. LocalStorage - Remembering High Scores

localStorage.setItem('alienBomberHighScores', JSON.stringify(scores));

📊 What's Actually in the Code?

ComponentLinesWhat It Does
HTML Structure~200Creates all screens, buttons, and displays
CSS Styling~300Makes it look alien & futuristic with animations
JavaScript Logic~800All the game rules, movement, and scoring
Total~1,300Complete playable game!

🎯 What This Demonstrates

🚀 Try It Yourself!

Free Tools to Get Started:
AI Assistants: ChatGPT, Claude, Qwen, Cursor
Code Editors: VS Code, Replit (runs in browser)
Learning: freeCodeCamp, Code.org, Scratch

💡 The Future of Coding

AI doesn't replace programmers—it empowers creators.

Before AIWith AI
Months learning syntaxHours describing ideas
Complex setupInstant prototypes
Solo debuggingCollaborative problem-solving
Barrier to entryAnyone can create

🎓 Career Connections

Game Development (Unity, Unreal) • Frontend Dev (HTML/CSS/JS) • Software Engineering • AI/ML Engineering

🎯 Challenge for Students

Can you describe a game idea that would take AI 5 iterations to perfect? Think about: What makes it fun? What rules does it need? How does the player win/lose?

Created for the STEM Innovation Fair 2025 • Demonstrating AI-Assisted Creative Coding

← Back to Games