How farairudokapopo-code/beat-the-sphinx works
Beat the Sphinx is a browser-based daily riddle game. The player enters the game, answers three date-seeded riddles across rising difficulty, and receives a survival result, streak/stat updates, points, and a shareable score. Points also support a god-helper shop and Sphinx skin customization. The graph preserves those documented branches; the sampled excerpts show the main controller invoking art, gods, skins, and sound, but do not expose every runtime transition or the HTML wiring.
Main entry points: script.js Game controller · art.js Pixel-art engine · skins.js Sphinx display · gods.js God portraits
Components 19
Daily gameplay
- Game controller
script.js - Daily selection
script.js - Riddle tiers
riddles.js - Answer and powers
script.js - Results and sharing
script.js
Progression and profile
- Stats and profile
script.js - Points rewards
script.js - God shop
script.js - God catalog
gods.js - Skin customization
script.js - Skin catalog
skins.js
Pixel art and audio
- Sphinx display
skins.js - God portraits
gods.js - Pixel-art engine
art.js - Grid sprites
sprites.js - Sound effects
sound.js
Other components
- Player
- Browser storage
- Clipboard
Connections 23
- Player → Game controller: plays
README.md - Game controller → Daily selection: selects daily
README.md - Daily selection → Riddle tiers: draws riddles
README.md - Player → Answer and powers: submits answers
README.md - Answer and powers → Results and sharing: records outcome
README.md - Results and sharing → Points rewards: awards points
README.md - Results and sharing → Stats and profile: updates stats
README.md - Results and sharing → Clipboard: copies score
script.js - Player → God shop: shops
README.md - God shop → God catalog: lists gods
script.js - Answer and powers → God catalog: applies helper
script.js - Player → Skin customization: customizes
README.md - Skin customization → Skin catalog: lists skins
script.js - Skin customization → Stats and profile: saves look
script.js - Game controller → Stats and profile: loads and saves
script.js - Game controller → Sphinx display: updates mood
script.js - Sphinx display → Pixel-art engine: paints canvas
skins.js - God shop → God portraits: draws portraits
script.js - God portraits → Pixel-art engine: paints canvas
gods.js - Game controller → Sound effects: plays effects
script.js - Game controller → Grid sprites: checks availability
script.js - Pixel-art engine → Player: renders characters
README.md - Sound effects → Browser storage: stores mute
sound.js