How sogful/candies.monster works
Purpose and Delivery Model
Candies.monster is a static Cut the Rope/Om Nom resource site: reference pages, media archives, conversion tools, game-version cataloging, and browser-playable previews. It is deployable without a server; root hosting markers include CNAME, .nojekyll, and manifest.json.
Site Entry Points and Navigation
The site front page is index.html; standalone resource sections are implemented as independently deployable HTML pages/directories, including convert/index.html, versions/index.html, music/index.html, levels/index.html, and preview/index.html. This is a multipage static site rather than a single application shell.
Shared Presentation and Browser Utilities
Shared client-side behavior and common media live under assets/: assets/static/global.js, assets/static/conversion.js, and assets/images/candies/candies.json. Root pages consume these browser-side resources directly. The site also packages syntax highlighting, font assets, custom cursors, and audio locally; no CDN dependency is evident from the tree.
Conversion Tools
The converter surface at convert/index.html is backed by local Python conversion variants—convert/assets/static/old.py, convert/assets/static/ysnew.py—suggesting in-browser Python execution via the bundled assets/static/pyodide.js. A separate downloadable/native converter is retained at assets/static/XNBSoundConverter.exe. Conversion is therefore client-side/download-based, not an API service.
Resource Catalogs
Distinct static catalogs organize assets and metadata by topic. Music is metadata-driven through music/music.json and local audio under music/assets/audio/; the versions archive uses versions/index.js, versions/load.js, plus Android/iOS CSV datasets. Level-related resources reside in levels/index.html and levels/assets/static/1_1.xml. These sections read static files and render them in the browser.
Preview Hub and Game Runtimes
preview/index.html and preview/index.js present several embedded/playable game implementations. Three materially different runtimes are preserved:
• Source-oriented JavaScript/WebGL Famobi game: preview/famobi/index.js, preview/famobi/src/game/app/loop.js, preview/famobi/src/engine/physics/candy.js.
• Prebuilt H5DX web game: preview/h5dx/dist/index.html, preview/h5dx/dist/assets/app-0BteyeId.js, preview/h5dx/dist/sw.js.
• Published .NET WebAssembly game: preview/dx/dist/wwwroot/index.html, preview/dx/dist/wwwroot/_framework/dotnet.js, preview/dx/dist/wwwroot/_framework/CutTheRopeDX.Browser.b67zkuaf2s.wasm.
Famobi Game Architecture and Flow
The Famobi preview is the clearest editable game stack. Browser bootstrap (preview/famobi/index.html → preview/famobi/index.js) initializes lifecycle, viewport, input, persistence, and SDK boundaries under preview/famobi/src/game/app/. It loads fonts, sprite sheets, strings, audio, and level JSON via preview/famobi/src/game/assets/loader.js; scene direction selects loading/menu/level flows via preview/famobi/src/engine/scene/director.js and preview/famobi/src/game/scenes/level.js. Physics entities and ropes drive gameplay, rendering draws scene state, and audio maps game events to Web Audio assets. Level content is data-separated in preview/famobi/assets/static/boxes/.
Runtime Boundaries and Offline Behavior
All gameplay assets—levels, atlases, audio, localization, and videos—are static files fetched by the client. H5DX and DX include service-worker/PWA artifacts (preview/h5dx/dist/sw.js, preview/dx/dist/wwwroot/service-worker.js) for caching/offline behavior. The tree provides no evidence of backend APIs, databases, authentication, analytics, or third-party hosted services; browser storage and optional game SDK integration are the key client-side boundaries.
Main entry points: index.html Site front page · preview/index.html Preview hub · convert/index.html Conversion tools · index.js Famobi bootstrap
Components 21
Static Site
Multipage static hosting.
- Static hosting · Hosts files without a server.
- Site front page
index.html - Shared browser utilities · Common browser behavior and conversion support.
assets/static/global.js - Candy metadata
assets/images/candies/candies.json
Resource Catalogs
Browser-rendered static resource sections.
- Conversion tools · Client-side and downloadable conversion surface.
convert/index.html - In-browser Python
assets/static/pyodide.js - Python converters
convert/assets/static/old.py - Native converter download
assets/static/XNBSoundConverter.exe - Music catalog
music/index.html - Music metadata and audio
music/music.json - Version archive
versions/index.html - Version data loader · Loads Android and iOS CSV datasets.
versions/load.js - Level resources
levels/index.html
Preview Hub
Playable game runtimes and their assets.
- Preview hub · Selects embedded playable implementations.
preview/index.html - Famobi bootstrap · Initializes the editable JavaScript/WebGL game.
preview/famobi/index.js - Famobi asset loader · Fetches fonts, sprites, strings, audio, and levels.
preview/famobi/src/game/assets/loader.js - Famobi scene flow · Routes loading, menu, and level scenes.
preview/famobi/src/engine/scene/director.js - Famobi level gameplay · Uses physics entities and ropes during play.
preview/famobi/src/game/scenes/level.js - Famobi level data
- H5DX web game · Bundled game with service-worker caching.
preview/h5dx/dist/index.html - .NET WASM game · Published browser game with offline support.
preview/dx/dist/wwwroot/index.html
Connections 20
- Static hosting → Site front page: serves
- Site front page → Shared browser utilities: loads
- Site front page → Candy metadata: uses
- Site front page → Conversion tools: links to
- Site front page → Music catalog: links to
- Site front page → Version archive: links to
- Site front page → Level resources: links to
- Site front page → Preview hub: links to
- Conversion tools → In-browser Python: runs with
- In-browser Python → Python converters: executes
- Conversion tools → Native converter download: offers download
- Music catalog → Music metadata and audio: reads
- Version archive → Version data loader: loads
- Preview hub → Famobi bootstrap: launches
- Preview hub → H5DX web game: launches
- Preview hub → .NET WASM game: launches
- Famobi bootstrap → Famobi asset loader: initializes
- Famobi bootstrap → Famobi scene flow: starts
- Famobi scene flow → Famobi level gameplay: enters level scene
- Famobi asset loader → Famobi level data: fetches