Skip to content
Random game

Requirements

Last updated 2026-11-21

These are the rules for a game on FreeGames.gg. The automatic checks test most of them in about 3 minutes after you upload, and a reviewer checks the rest.

How to read this page

  • MUST is a rule a game has to meet. A failed MUST check stops the submit, and a reviewer sends the game back when it breaks one.
  • SHOULD is strongly advised. A failed SHOULD check shows as a warning. Most of them change how long players stay and how often the game crashes, and those numbers change how often the game is shown (see How games are found).
  • MAY is allowed, and up to you.

Hard rules

Your game MUST:

  1. Load the SDK from https://games.foony.com/sdk/v1.js and call init(), loadingFinished(), gameplayStart() and gameplayStop() (see the SDK reference). The one exception is a game hosted as is.
  2. Run in Chrome and Edge on desktop. If you say it works on phones, it MUST run on Android Chrome and iPhone Safari with touch only.
  3. Show no ads of its own. Only the page shows ads. No ad scripts, ad frames or tracking scripts.
  4. Have no login or account forms of its own, and never ask for a password or an email address. To know the player, use the player token.
  5. Ask for nothing from other sites, except hosts you name in the game’s settings and we approve (your own game server, for example).
  6. Never change the top page’s address or open new windows or tabs.
  7. Keep working when ads are blocked. rewardedBreak() then resolves {rewarded: false}, and the game goes on with no reward.
  8. Keep working when storage is blocked (some private windows block it). Put localStorage calls inside try, or use saves.
  9. Stay within the file limits.
  10. Be yours, or yours to publish: code, art, music and names.
  11. Have no crypto miners and no code that harms players or their devices.
  12. Send any text a player typed through filterText() before other players see it: chat, player names, level or team names. Show the text it resolves with, never the text as typed (see Player text). A game that shows typed text only to the player who typed it doesn’t need it.

Quality guidelines

Your game SHOULD:

  • Call loadingFinished() within 5 seconds on desktop.
  • Have an initial download of 10 MB or less. Games over 10 MB aren’t shown in the phone home rows.
  • Play no sound before the player’s first tap, click or key press.
  • Mute when the page says so (audio.onMuteChange) and pause when it says so (pause.onPause).
  • Fill the frame at 16:9, and in portrait if you say it supports portrait.
  • Call gameEnd() when a match or run ends, and ask for commercialBreak() at natural breaks.
  • Keep the player’s progress with saves.
  • Show the controls on screen in the first minute of play.

What you may do

Your game MAY:

  • Be on other sites too. FreeGames.gg asks for no exclusive rights.
  • Use its own server for multiplayer or saves, once we approve its host.
  • Offer rewarded ads, or none at all.
  • Be made with any engine that exports to the web.
  • Get a new build at any time. Each build runs the automatic checks again.

Hosted as is

A studio may let portals host its games unchanged (no SDK inside). Then tick Hosted as is in the details and fill in Made by. Upload the original ZIP. We keep its files byte for byte in a game/ folder, and our own page around them starts the SDK: it reports loadingFinished() when the game’s page has loaded, gameplayStart() at the first click, tap or key, and gameplayStop() when the tab hides. Players earn play time XP as usual. The game gets no ads during play and no saves, and every other rule still applies. A reviewer checks that the build is the unaltered original and that its license lets us host it.

File limits

Limit Value
Format A ZIP with index.html at the root
Initial download (load start to the first gameplayStart()) 20 MB or less (10 MB or less to show in the phone home rows)
Total size, unpacked 250 MB or less
Files 1,500 or fewer (folders don’t count)
One file 30 MB or less
Paths Relative only, letters, digits and . _ - @ + only, each file once, 240 characters or fewer
Peak JavaScript memory (heap) 512 MB or less

1 MB here is 1,048,576 bytes. Files that end in .br or .gz are sent with the matching Content-Encoding, so Brotli and Gzip builds from Unity and other engines work as they are.

Content rules

FreeGames.gg is for players of every age, so games MUST NOT have:

  • Sexual content or nudity.
  • Realistic gore, or cruelty to real people or animals.
  • Hate against any group of people.
  • Gambling for real money, or anything that looks like it costs real money.
  • Ads for or links to other games, stores or social media.

Chat between players, or content players make and share (levels, drawings, names), MUST be moderated. Say so in the game’s age questions, and a reviewer checks how it works. There is no payments API yet, so games have no in-game purchases.

Players under 13

  • Players under 13 see no ads. A rewardedBreak() still gives them the reward.
  • The player token names a player only by a per-game id, for every player. Your game never learns a name, an email or an age from us.
  • Your game MUST NOT ask any player for personal information: name, email, age, address, phone number, school or photos.

Automatic checks

Every build gets these checks in about 3 minutes. ZIP checks read the archive before it is unpacked. Load checks play the build in headless Chrome, the same way the Inspector does. Each check below has the id the check report shows, so a report links straight to it.

  1. MUST zip_valid ZIP check #

    The upload is a ZIP we can read

    What it checks
    The file opens as a ZIP archive, with no broken entries and no password.
    How to fix it
    Make the ZIP again with your system's own "Compress" or "Send to ZIP" option, or zip -r game.zip . inside the build folder. Don't use RAR, 7z or a password.
  2. MUST index_html ZIP check #

    index.html is at the root of the ZIP

    What it checks
    A file named exactly index.html sits at the top of the archive, not inside a folder.
    How to fix it
    ZIP the contents of your build folder, not the folder itself. Open the ZIP: you should see index.html at once, not a folder named after your game.
  3. MUST total_size ZIP check #

    The whole build is 250 MB or less

    What it checks
    The unpacked size of every file added together.
    How to fix it
    Remove files the game never loads (source art, old builds, .map files). Compress textures and audio (WebP or AVIF images, Ogg or AAC audio). Unity: turn on Brotli compression and strip unused engine code.
  4. MUST file_count ZIP check #

    1,500 files or fewer

    What it checks
    The number of files in the archive. Folders don't count.
    How to fix it
    Pack small images into sprite sheets (texture atlases) and small sounds into one audio sprite. Remove files the game never loads.
  5. MUST file_size ZIP check #

    No file is bigger than 30 MB

    What it checks
    The unpacked size of each file on its own.
    How to fix it
    Split a big data file into parts the game loads one by one. Unity: compressed .data files are usually far under the limit. Check that Brotli or Gzip compression is on.
  6. MUST paths ZIP check #

    Paths are relative, plain ASCII and 240 characters or fewer

    What it checks
    Every file name in the ZIP, and the addresses in your HTML, CSS and JavaScript that point at your own files. A path that starts with /, uses .., has letters outside plain ASCII (like é) or is longer than 240 characters fails.
    How to fix it
    Write img/logo.png, not /img/logo.png. Rename files to plain letters, numbers, -, _ and .. Your game runs from a folder on another domain, so a path from the domain root points at nothing.
  7. MUST sdk_script ZIP check #

    The game loads FreeGamesSdk

    What it checks
    The build loads FreeGamesSdk: a script tag with the full address https://games.foony.com/sdk/v1.js, the ES module https://games.foony.com/sdk/v1.mjs, or the npm package bundled into your code. A copy of the script tag's file in your build, or another portal's SDK in its place, fails.
    How to fix it
    Add <script src="https://games.foony.com/sdk/v1.js"></script> to the <head> of index.html, before your game's own scripts. Remove the Poki or CrazyGames SDK tag: our script sets up both of them for you.
  8. MUST no_ad_scripts ZIP check #

    No ad scripts of your own

    What it checks
    Your files are searched for the addresses of known ad and tracking networks, like adsbygoogle.js or securepubads.g.doubleclick.net.
    How to fix it
    Remove every ad script and ad SDK. Only the page shows ads. Ask for ads with commercialBreak() and rewardedBreak(), and keep your Google Ad Placement API calls: the SDK runs them.
  9. MUST no_miners ZIP check #

    No crypto miners or known bad files

    What it checks
    Your files are compared with known miner scripts and known bad files.
    How to fix it
    Remove the file the report names. If it is part of a library you trust, write to us in the game's message thread with the file name.
  10. MUST no_login_forms ZIP check #

    No login or account forms

    What it checks
    Your HTML is searched for password fields and sign-in forms.
    How to fix it
    Remove your own login. To know who is playing, use the player token from init() (see "Know the player"). Players already have a Foony account.
  11. SHOULD sdk_api ZIP check #

    Calls only SDKs we understand

    What it checks
    Your code is searched for calls to portal SDKs that FreeGamesSdk does not map: the CrazyGames SDK v2 (CrazySDK.getInstance), GameDistribution (gdsdk) and Yandex Games (YaGames). The CrazyGames SDK v3 and the Poki SDK are mapped and pass.
    How to fix it
    Call FreeGamesSdk (init(), loadingFinished(), gameplayStart()), or update your engine plugin to the CrazyGames SDK v3, which our script maps for you.
  12. INFO engine ZIP check #

    Engine

    What it checks
    The engine your build was made with, from its file names (like Build/game.loader.js for Unity) or its code. It never fails.
    How to fix it
    Nothing to fix. The engine guides in these docs have the setup for each engine.
  13. MUST sdk_init Load check #

    The SDK starts with init()

    What it checks
    The load run sees the SDK script start and the game call FreeGamesSdk.init() (or PokiSDK.init() or CrazyGames.SDK.init()).
    How to fix it
    Call FreeGamesSdk.init() as soon as your game starts. Check the browser console in the Inspector for an error before that line.
  14. MUST loads_desktop Load check #

    Loads without errors on desktop Chrome

    What it checks
    No uncaught error and no unhandled promise rejection before loadingFinished(), in a 1366 by 768 desktop window. The report names the first error, its file and line.
    How to fix it
    Open the Inspector, load your build and read the first error in the event log. A missing file (a 404) is the most common cause: check missing_files too.
  15. MUST loads_phone Load check #

    Loads without errors on a phone

    What it checks
    The same run on an Android phone profile (412 by 915, touch), when your game says it works on phones. A tap must reach gameplayStart(). Desktop-only games skip this check.
    How to fix it
    Test with the Inspector in phone mode. Start play on a tap (pointerdown or touchstart), not only on a key press or a mouse click.
  16. MUST missing_files Load check #

    Every file the game asks for is in the build

    What it checks
    Every address on your build's own folder that the game asked for during the run. One that answers 404 (not found) fails, and the report lists each path.
    How to fix it
    Add each missing file to the ZIP at the path shown, with the same upper and lower case letters. Use relative paths (img/star.png, not /img/star.png).
  17. MUST loading_finished Load check #

    Calls loadingFinished()

    What it checks
    The game calls loadingFinished() (or PokiSDK.gameLoadingFinished(), or CrazyGames loadingStop()) once it is ready to play.
    How to fix it
    Call loadingFinished() when your first screen is ready for input. Without it the page keeps its loading bar and the load time can't be measured.
  18. MUST gameplay_start Load check #

    Calls gameplayStart() when play starts

    What it checks
    On desktop the load run clicks the game and presses Space and Enter. On the phone it only taps (a phone has no keyboard). It tries up to 3 times, 3.5 seconds apart: the middle first, then the biggest button-like element your page shows (a <button>, a link, anything with a pointer cursor), then the next biggest. A canvas game with no such element gets taps below the middle instead. The report says where each one went. One of them must lead to gameplayStart().
    How to fix it
    Call gameplayStart() when play really begins. If your menu needs a button, make sure a click or tap in the middle of the frame, Space or Enter can press it. On phones, start on pointerdown or touchstart.
  19. SHOULD loading_finished_early Load check #

    Takes input when loadingFinished() comes

    What it checks
    After loadingFinished() the first click or tap should start play. It warns when that click did nothing while the game was still downloading (a quarter or more of its first download came after loadingFinished()), and only a later click started play.
    How to fix it
    Call loadingFinished() when your first screen is drawn and takes input, not when loading starts. The page hides its loading bar then, so the player clicks right away.
  20. SHOULD load_time Load check #

    Ready to play within 5 seconds

    What it checks
    The time from the frame starting to load to loadingFinished(), on desktop.
    How to fix it
    Load only what the first screen needs, then load the rest while the player is in the menu. Compress images and audio. Unity: use Brotli and a smaller first scene.
  21. MUST initial_download Load check #

    Initial download is 20 MB or less

    What it checks
    Bytes moved from the frame starting to the first gameplayStart(). Over 20 MB fails. Over 10 MB is a warning, and keeps the game out of the phone home rows.
    How to fix it
    Load the first level only, then the rest in the background. Turn on compression. Check the biggest files in the Inspector's network list.
  22. MUST heap Load check #

    Uses 512 MB of memory or less

    What it checks
    The largest JavaScript heap seen in 60 seconds of play.
    How to fix it
    Free textures and sounds you no longer use, and look for arrays that grow every frame. Unity: lower the WebGL memory size in Player Settings.
  23. SHOULD memory_growth Load check #

    Memory stays level during play

    What it checks
    The JavaScript heap from 2 seconds after gameplayStart() to the end of the run. Growth of 50 MB or more, at 5 MB a second or more, rising in most of the 1-second samples, is a warning: on a long session the game runs out of memory and the tab crashes.
    How to fix it
    Look for data you keep every frame and never drop: arrays and maps that only grow, listeners added in a loop, objects kept for undo or replays. Chrome DevTools' Memory tab shows what grows.
  24. MUST external_requests Load check #

    No requests to outside sites

    What it checks
    Every address the game asks for outside its own build folder and FreeGames.gg. The report lists each outside host.
    How to fix it
    Put fonts, libraries and art inside your build. If your game needs its own server (multiplayer, saves), name its host in the game's settings, and we review it.
  25. MUST external_ads Load check #

    No outside ads or trackers

    What it checks
    Requests during play are matched against a list of ad and tracking hosts, and the page is searched for ad frames.
    How to fix it
    Remove the ad or tracking library the report names. Ads only come from the page, through commercialBreak() and rewardedBreak().
  26. MUST no_navigation Load check #

    Never leaves the page or opens windows

    What it checks
    The game must not change the top page's address or open a new window or tab.
    How to fix it
    Remove window.open, top.location and links with target="_blank" or target="_top". Show your links as plain text for now.
  27. SHOULD event_order Load check #

    SDK calls come in the right order

    What it checks
    The event log has no gameplayStart() twice in a row, no gameplayStop() with no start before it, no play while an ad is on screen, and no break before loadingFinished().
    How to fix it
    Follow the order of calls table in the SDK reference. Call gameplayStop() before a break, and gameplayStart() again after it.
  28. SHOULD fills_frame Load check #

    Fills the frame

    What it checks
    A screenshot at the end of the run, on desktop (16:9) and on the phone (portrait). Bands of one color on two opposite edges, about the same size and together over 20% of the frame, are a warning when they are near black: a square or portrait game on its own background color passes. When play never started, the bands count only if the game reaches the other two edges and the bands hold in the frames taken every 2 seconds (a game drawn at a fixed shape, not a loading logo). A blank screen is left to blank_screen.
    How to fix it
    Size the canvas to the window (innerWidth and innerHeight) and listen for resize. A game with a fixed shape (a square board, a portrait column) can keep it: color the page around it with your game's background instead of black. Unity: use a template that fills the page.
  29. SHOULD late_errors Load check #

    No errors during play

    What it checks
    Uncaught errors and unhandled promise rejections after loadingFinished(), during the scripted play. The report names each one with its file and line.
    How to fix it
    Fix the line the report names, or catch the error where you expect it. Errors during play often freeze a level or stop the sound.
  30. MUST blank_screen Load check #

    Shows a picture, not a blank screen

    What it checks
    Three small screenshots at the end of the run, and the frames taken every 2 seconds during play. When almost the whole screen (98% or more) is one flat color in all three end shots, or in half or more of the frames during play, the game shows nothing, even if its SDK calls came.
    How to fix it
    Check that your canvas is drawn: a WebGL context that failed, a canvas with a CSS size of 0, a first frame that never renders, or a screen hidden behind a black overlay. The report's frames show what we saw.
  31. MUST no_dialogs Load check #

    No alert or confirm pop-ups

    What it checks
    Any alert(), confirm(), prompt() or leave-page dialog the game opens during the run. The report shows its text: engines often report a load error this way (Unity: "An error occurred running the Unity content").
    How to fix it
    Fix what the message names, then show any message inside your game. Never use alert(), confirm() or prompt(): they stop the whole page.
  32. SHOULD audio_before_input Load check #

    No sound before the first click, tap or key

    What it checks
    A small script in your game's frame notes every sound it starts (play() on audio or video, Web Audio start()) before the first click, tap or key in the game.
    How to fix it
    Start music and sound after the player's first input in your game, or after gameplayStart(). On our page the player has already clicked, so a sound at load plays at once.
  33. SHOULD mute_support Load check #

    Sound stops when the page mutes the game

    What it checks
    Near the end of the run the page mutes your game, as a player does with the sound button. A small script in your game's frame measures your Web Audio output and your playing <audio> and <video> elements in the second before and from 0.5 to 2 seconds after. Skipped when your game had no sound that lasted the whole second before (music or a loop, not a short effect).
    How to fix it
    Listen with sdk.audio.onMuteChange((isMuted) => ...) and set your master volume to 0 while it says muted (Web Audio: a master GainNode, Howler: Howler.mute(isMuted), Phaser: game.sound.mute = isMuted, Unity: AudioListener.volume). Start muted when init() answers isMuted: true.
  34. SHOULD no_rotate_screen Load check #

    No "turn your device" screen

    What it checks
    The text on your game's page at the end of the run, for words that ask the player to turn the device ("rotate your phone", "landscape mode"). The phone run holds the phone the way your game's details say: sideways for Orientation Landscape, upright for Portrait or Both. Text your game draws on a canvas can't be read, so a drawn "rotate" screen shows only in the frames.
    How to fix it
    Set Orientation in your game's details to the way your game plays. If it says Both or Portrait, draw your game for an upright phone too, and never ask the player to turn it.
  35. SHOULD saves_reload Load check #

    Saves come back after a reload

    What it checks
    When your game saved with save.set() during the run, the page reloads it with those saves kept, as a player who comes back, and waits up to 10 seconds for save.get() of a key it saved. Skipped when the game saved nothing.
    How to fix it
    Read your saves with save.get() when the game starts, before the title screen, and use them. Keep the keys the same between versions. The cloud save page in these docs shows how.