Space Memory
By Memory Games
Based on the following code

Memory Game
Just Sparrow
35 views ยท 19d ago
Space Memory
A kid-friendly memory matching game across 32 cosmic objects โ stars, planets, all 8 moon phases, spacecraft, and otherworldly beings. Flip cards, find pairs, and progress through 10 levels โ then keep going forever in endless mode.
How to Play
- Tap START on the cover screen to begin.
- Tap any card to flip it over and reveal the cosmic object.
- Tap a second card. If both cosmic objects match, the pair stays revealed.
- If they don't match, both cards flip back face-down. (You can tap a new card right away โ no waiting required.)
- Clear all pairs on the board to advance to the next level.
Cover Screen
A title screen greets the player on launch:
- Title: Space Memory
- Subtitle: Match the cosmic pairs!
- Six preview cards floating gently: ๐ ๐ช ๐ โญ ๐ฝ ๐ธ
- A large START button to begin
Tapping the ๐ home button mid-game returns to this cover screen and resets to Level 1.
Features
10 Levels + Endless Mode
| Level | Grid | Types | Cards | Notes |
|---|---|---|---|---|
| 1 | 2ร2 | 2 | 4 | |
| 2 | 3ร3 | 4 | 8 | Center cell empty |
| 3 | 4ร4 | 4 | 16 | 4 copies of each cosmic object |
| 4 | 4ร4 | 8 | 16 | |
| 5 | 5ร5 | 6 | 24 | 4 copies, center empty |
| 6 | 5ร5 | 12 | 24 | Center empty |
| 7 | 6ร6 | 9 | 36 | 4 copies of each |
| 8 | 6ร6 | 18 | 36 | |
| 9 | 8ร8 | 16 | 64 | 4 copies of each |
| 10 | 8ร8 | 32 | 64 | All 32 cosmic objects used |
| 11+ | 8ร8 | 32 | 64 | Endless โ stages keep counting up |
After clearing Level 10, an endless mode unlocks with no upper limit. The stage number keeps rising, and cumulative stats (Moves, Matches, Time) replace per-level stats on the HUD.
Cosmic objects Pool (32 total)
| Category | Cosmic objects |
|---|---|
| Stars & light | โ๏ธ โญ ๐ โจ ๐ซ โ๏ธ ๐ |
| Planets & worlds | ๐ช ๐ ๐ ๐ |
| Moon phases | ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ |
| Spacecraft | ๐ ๐ธ ๐ฐ๏ธ |
| Beings | ๐ฝ ๐พ ๐ค |
| Setting | ๐ ๐ ๐ญ |
Sound Effects & Voice
All sounds are generated on the fly โ no external audio files.
Two audio modes (toggle with the ๐ฃ๏ธ / ๐ต button on the right):
- Voice mode (default, ๐ฃ๏ธ): Card flips speak the cosmic object's English name via the Web Speech API. Voice quality depends on the device's system TTS (best on iOS/macOS, also good on modern Android, more robotic on Windows defaults).
- Tone mode (๐ต): Card flips play a soft synthesized tap tone instead.
Match / level sounds (always synthesized tones, both modes):
- Bright three-note chime on a successful match
- Gentle two-note descent on a miss
- Ascending arpeggio on level clear
- Longer celebratory melody when Level 10 is cleared
A separate mute button (๐ / ๐) silences everything โ both voice and tones.
Final Celebration
Clearing Level 10 unlocks a special modal:
- ๐ Trophy pop-up animation
- Cumulative stats (Total Moves, Total Time)
- Emoji confetti rain (๐๐โจ๐โญ๐๐๐๐๐)
- GO AHEAD!! button to continue into endless mode
Quality-of-Life Details
Three small theme-colored buttons sit at the top of the screen (styled like miniature cards):
- ๐ Home (top-left): Return to the cover screen and reset to Level 1.
- ๐ / ๐ Mute (top-right): Silence everything.
- ๐ฃ๏ธ / ๐ต Voice toggle (top-right, below mute): Switch between voice (default) and tone modes.
Other niceties:
- Interruptible misses: When two non-matching cards are showing, tap any other card to flip them back and start a new pair immediately โ no waiting.
- Auto progression: Each level clear advances automatically when you tap the modal button.
Design
This game shares the gameplay and layout of the base Memory Game, with a cosmic purple color palette tuned to the theme.
- Portrait layout (9:16 aspect ratio) sized with
100vw ร 177.78vwโ fits entirely on a phone without scrolling. - Theme palette:
- Page background:
#f3f1fa - Face-down card color:
#9575cd(with theโฆicon) - Matched card gradient:
#ede7f6โ#b39ddb, border#7e57c2 - Title text gradient:
#7e57c2โ#5c6bc0โ#29b6f6โ#ffd54f - Primary button gradient:
#5e35b1โ#29b6f6โ#ffd54f - Stat accent colors:
#5e35b1/#0288d1/#ffa000(Moves / Matches / Time)
- Page background:
- Fredoka font (Google Fonts) for a rounded, child-friendly look on both desktop and mobile.
Tech
- Single HTML file, no build step or external assets (one Google Fonts link).
- Pure CSS for all animations.
- Web Audio API for synthesized match/miss/level chimes.
- Web Speech API for voice mode โ uses the device's system TTS, works offline.
- Sized in
vwunits for portrait displays.
Loading comments...
Other Codes
No other codes yet
