hypnopompia

the iOS and Android shell for magmacrunch arcade games

The shared parts that turn a magmacrunch web game into an App Store app, and into an Android one: the app itself, Game Center leaderboards and achievements, and the tools for testing and for the store listing. None of any game's rules are in here; each game keeps its own.

the technical version

Everything an App Store build of a magmacrunch game needs that has nothing to do with the game: the Capacitor and Xcode project, a native Game Center plugin, the Android back button and launcher art, the pipeline that turns a web page into an app bundle, and the tooling for the store and for testers. magma-kit does the same job for the desktop apps.

It runs no game logic. A game’s rules live in that game’s repo, once per platform. Every piece here started inside george boole’s port and moved out once a second game needed the same thing, so anything only one app needs stays in that app.

built on it

Every App Store build that goes through here. None has been submitted yet. makemecookies!x4 and moonlight drift have Android builds too, not yet on Google Play.

what's here

native/ The Game Center plugin and view controller in Swift, and the Android back button in Java, copied byte for byte into each game’s app
pipeline/ The bundle transforms every build shares, and a sweep that fails on anything the app would have to fetch
sync.mjs Copies native/ into a game, and the Android files only into a game with an Android project; --check compares hashes across every game that uses it
fastlane/ Shared lanes for App Store Connect: turn on Game Center, upload the listing, send a build to TestFlight. Each is a dry run until confirmed
check-metadata.mjs A game’s store copy against App Store Connect’s field limits, before an upload rejects it
check-game-center.mjs Leaderboard and achievement ids and their art, before any of them are created
android_art.py The adaptive icon and splash geometry. A game draws three pictures and this writes every density and the 512px store icon; --check says whether they are current
check-android.mjs The Android settings each game keeps for itself, against each other and the iOS half: one background color in three places, the Capacitor version, orientation, the back button wired in
deploy-sim.mjs Puts each app’s Simulator build on a private page for testers with a Mac
tests/ 148 checks on node’s own test runner, and both ends of the copy check run in CI

the shared transforms

The changes every web game needs before it can ship as an app, done the same way for all of them: making it run with no internet connection, opening outside links in the browser, and fitting the screen around the notch.

loadShims Injects the app-only shims after the score bootstrap, so a shim is listening before the game can dispatch anything
pointSharedAssets Repoints shared assets at the bundle, which has no parent directory to climb to
stripStamps Drops the cache-buster stamps, which a bundle that ships its own files has no use for
viewportNotch Adds viewport-fit=cover so the viewport reaches the notch
outboundLinks Opens outbound links in the system browser, rather than navigating the app into a dead end with no back button
the sweep Fails the build on anything the bundle would have to fetch over the network to render

keeping the copies in step

Every game gets an exact copy of the app code kept here. A check compares the copies, so if one is edited by mistake the build fails, instead of the games quietly drifting apart.

the technical version

The Swift in native/ is byte-identical in every game, so a hash comparison is a complete drift check. It runs from both ends: each game’s CI checks its own copy, and this repo’s CI checks every game listed in consumers.json. Edit it here, never in a game, then copy it out. Node 22 or newer, and nothing else:

node tools/sync.mjs ../../games/<game>
node tools/sync.mjs --check
node tools/check-metadata.mjs ../../games/<game>/mobile
node tools/check-game-center.mjs ../../games/<game>/mobile
node tools/check-android.mjs

the name

After Hypnopompia by Texas Hold’Em Lava Dome, from Pompous Fanfare for All Occasions (2019). Adenosine is the molecule that builds sleep pressure; hypnopompia is surfacing out of it.

PolyForm Noncommercial 1.0.0 · Copyright 2026 magmacrunch media

// source access //

hypnopompia is developed in-house and is not publicly distributed. It ships inside the app builds it exists for, rather than on its own.

For source access, licensing, or anything else, email info@magmacrunch.com.