Deploy a game to PopNow Game Maker
deploy_gamePut a browser game the user made with you (HTML, JavaScript, CSS) online on PopNow Game Maker and get a link anyone can play: popnow.ai/play/. Send every text file in files (index.html at the top level, up to 2 MB of text). For pictures, music, sound effects and 3D models, first make them with create_image, create_music, create_sound_effects or other PopNow tools, then map the paths your code loads to those popnow:// links in assets; they are copied into the game for good. Games run in a sandbox on their own domain: they can load scripts and fonts from cdn.jsdelivr.net, cdnjs.cloudflare.com, unpkg.com, esm.sh and Google Fonts, but can't call other servers, use cookies, open pop-ups or register service workers; localStorage works for the session, and Web Workers must be created from blob: URLs. No server code: static files only. Free: no credits are used. To ship an update, call it again with the same game_id. Afterwards give the user the play link; to list the game in the PopNow Game Maker market, call publish_game.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "deploy_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Every text file of the game, up to 2 MB in total. Include index.html at the top level. Reference other files with relative paths (js/game.js, not /js/game.js). | |
| title | No | Optional game title. Defaults to the <title> of index.html. | |
| assets | No | Pictures, audio, video and 3D models for the game: a map from the path the game loads (for example assets/hero.png or sfx/jump.mp3) to a popnow:// link from an earlier PopNow result. They are copied into the game so the links never expire. Match the extension to the kind of file. | |
| game_id | No | To ship a new version of a game you deployed before, its game_id from the earlier result. Leave empty to create a new game. | |
| orientation | No | How the game is meant to be held on a phone: landscape, portrait or any. Default any. |