Fgame (5).html Buat projek ini menjadi lebih baik ini game nya dan buat sistem mata uang nya di hapus dan tambahkan ini... 📖 How to upload your game
×
prmpted Games runs your build inside a sandboxed iframe served from Supabase Storage. Follow these rules so it works on day one.
📦 Grab the Game Kit
A zip with a human-readable guide and prmpted.md — drop the .md into Claude / Cursor / Lovable and say "integrate prmpted per the instructions".
Download kit (.zip) Fprmpted-game-kit (3).zip
✅ <script src="./assets/index.js"></script>
✅ <script src="assets/index.js"></script>
❌ <script src="/assets/index.js"></script>
❌ <script src="/my-game/assets/index.js"></script>
Framework fixes:
Vite: add base: './' to vite.config.ts, then npm run build.
Create React App: set "homepage": "." in package.json, then npm run build.
Next.js: not supported (needs a server). Use next export on a static-only project.
Plain HTML/JS/Phaser/PixiJS: already relative — you're fine.
3. Zip the contents, not the folder
The zip's root must contain index.html. Don't zip a folder that contains the build — zip its contents.
✅ my-game.zip
├── index.html
├── assets/
└── ...
⚠️ Tolerated (auto-stripped):
my-game.zip
└── dist/
├── index.html
└── ...
❌ Multiple top-level folders:
my-game.zip
├── src/
└── dist/
PowerShell: Compress-Archive -Path .\dist* -DestinationPath my-game.zip
✅ localStorage / sessionStorage work and persist — prmpted bridges them to a per-user save (Supabase if signed in, browser cache if anon). No code required.
✅ Canvas, WebGL, WebAudio, Gamepad API, fullscreen, pointer lock, fetch to CORS-friendly URLs.
⚠️ IndexedDB is not bridged — migrate large state to localStorage if you want it to persist for signed-in players.
❌ Cookies, top-level navigation, popups to non-game URLs, direct access to the parent prmpted page.
6. Awarding achievements (optional, recommended)
The platform auto-injects a tiny SDK into your index.html at upload time. From your game code, call:
window.prmpted.unlock('first_blood');
window.prmpted.unlock('level_10_complete');
Each unique achievement_key you defined in Step 4 of the submission form awards the player +15 Builder Points. Unlocks are idempotent — calling twice is safe. Heartbeats (playtime tracking) are automatic; no code needed.