Component state
Tracks the player, score, lives, enemies, projectiles, and game status through a responsive component experience.
Salesforce · LWC · JavaScript · Just for fun
A playable arcade game built as a Lightning Web Component, proving that Salesforce UI engineering can go well beyond forms, tables, and blue Save buttons.
Gameplay demonstration
The short demonstration shows the component in action: player movement, projectiles, enemies, scoring, and the familiar arcade loop—all delivered through an LWC.
A working game is a compact demonstration of state, events, timing, rendering, and interaction—not merely a novelty wearing a Salesforce cloud.
02 / Why build it?
Business applications and arcade games share more engineering DNA than they first appear to: both react to user input, maintain state, apply rules, render feedback, and recover cleanly as conditions change.
Building the game inside Salesforce provided a playful way to exercise those fundamentals while demonstrating the flexibility of Lightning Web Components. It also makes the portfolio more human. Not every useful experiment needs a steering committee and a twelve-tab requirements workbook.
What it demonstrates
The result brings together the same component skills used to create responsive, dependable Salesforce business experiences.
Tracks the player, score, lives, enemies, projectiles, and game status through a responsive component experience.
Turns keyboard input into immediate movement and firing behavior while keeping the game loop smooth and understandable.
Detects hits, removes targets, updates the score, and manages the rules that move the game toward victory or defeat.
Packages an unexpected interactive experience inside the same Lightning Web Component model used for practical business interfaces.
The practical takeaway
Space Invaders is intentionally playful, but the underlying skills transfer directly to guided workflows, operational consoles, rich visual feedback, and other interaction-heavy Salesforce experiences.