NEXUS GRID
MOBILE GAME SHELL — v1.0.0
A ready-to-use mobile browser game shell. Drop your game logic in, wire it up via the event bus, and ship.
// SYSTEM
nexus:log { tag, msg } — write to console
nexus:toast { msg, type } — show toast
nexus:badge { tab, count } — set tab badge
nexus:tab { id } — switch active tab
nexus:alert { msg, type } — blocking alert
// GAME
nexus:game:start — game started
nexus:game:pause — game paused
nexus:game:over — game over
nexus:game:score { score, level, xp }
// AUDIO
nexus:audio:play { src } — play sound
nexus:audio:stop — stop current sound
nexus:audio:volume { value } — set volume 0-1
// DEVICE
nexus:haptic { pattern } — vibrate
nexus:net:online — connection restored
nexus:net:offline — connection lost
nexus:app:visible — app in foreground
nexus:app:hidden — app backgrounded
// PERSISTENCE
nexus:save { slot } — trigger save
nexus:load { slot } — trigger load
// SETTINGS
nexus:settings:changed { key, value }