Skip to content

How to upload a game

Tradfal hosts games that run in the browser. Uploading yours takes a few minutes: you build a .zip, fill in some details and, once it passes the automatic review, you publish it.

Upload my game

At a glance

  • A .zip of up to 200 MB

    With index.html in the main folder.

  • A cover and a GIF

    Both are optional: one image per game, to look after storage.

  • 5 uploads a day

    New games and new versions both count.

  • Automatic review

    It usually takes less than a minute. Then you publish it.

Step by step

  1. Step 1: Export your game for the web

    Every engine has an option to export for the web: it builds a folder with an index.html file and everything the game needs.

    • Godot: export with the «Web» template.
    • Unity: build for «Web» (WebGL).
    • GameMaker, Construct, Defold and PICO-8 also export to HTML5.
    • If you made it with JavaScript (Phaser, PixiJS, Three.js…), your folder is ready.

    Before uploading it, try it with a local server, for example with python3 -m http.server inside the folder. Opening index.html with a double click is not enough: many games do not start that way.

  2. Step 2: Build the .zip

    Compress the contents of the folder. index.html must end up at the root of the .zip; it also works if everything is inside a single folder.

    Like this

    my-game.zip

    • index.html
    • game.js
    • assets(folder)
      • sprites.png
      • music.ogg
    This works too

    my-game.zip

    • my-game(folder)
      • index.html
      • game.js
      • assets(folder)
        • …
    Not like this

    my-game.zip

    • proyecto(folder)
      • build(folder)
        • index.html
        • game.js

    index.html ended up two folders deep.

    • Windows: select the files, right click → «Compress to ZIP file» (or «Send to» → «Compressed folder»).
    • macOS: select the files, right click → «Compress».
    • Linux: inside the folder, zip -r ../my-game.zip .
  3. Step 3: Fill in the details

    The title (unique on Tradfal, up to 80 characters), a short description for the cards (up to 160), the genre, up to 8 tags and how it is played (up to 500 characters). If you want, add up to 3 questions for the players: their answers reach you apart from the comments.

  4. Step 4: Pick the cover and, if you want, a GIF

    Every game has a single image, the cover, and optionally a GIF. If you upload a GIF, it is shown in place of the cover; whoever prefers less motion sees the cover and anyone can pause it. Without either, we show an art in the genre's color.

    • Cover: a still PNG, JPG or WebP, from 320×180 to 4096×4096 pixels and up to 5 MB. It looks best in 16:9.
    • GIF: from 320×180 to 1920×1920 pixels, up to 600 frames and 5 MB. A short loop of the game in action works best.
  5. Step 5: Upload it and wait for the review

    Press «Upload game». The bar shows each step: preparing, uploading and reviewing. The review opens the .zip and checks every file; keep the page open until it finishes.

    If something does not pass, the reason shows next to the button. Fix it and use «Upload another .zip»: the details you entered are kept.

  6. Step 6: Publish it

    Once it passes the review, you land on your game's page with the «Your game is ready!» notice and the «Publish game» button. Until you publish it, it is a draft only you can see. You can take it down any time with «Take game down».

  7. Step 7: Update it whenever you want

    From «Versions» you upload a new version and choose which one is played. From «Edit» you change the details, the cover or the GIF.

Limits

WhatMaximum
The .zip200 MB
The uncompressed game1 GB
Number of files5,000
A single file500 MB
Length of a path240 characters
Uploads a day5
The cover5 MB
The GIF5 MB

Limits may change: this page always shows today's.

Which files are accepted

Code and web
.html.htm.js.mjs.cjs.css.json.map.wasm.xml.txt.csv.webmanifest
Images and textures
.png.jpg.jpeg.webp.gif.svg.avif.bmp.ico.cur.ktx2.basis.dds
Audio
.mp3.ogg.opus.wav.m4a.aac.flac.mid
Video
.mp4.webm.ogv.m4v
Fonts
.ttf.otf.woff.woff2.eot
3D models
.glb.gltf.obj.mtl.bin
Engine data
.data.dat.pck.unx.mem.bytes.unityweb.unity3d.atlas.fnt.tmx.tsx

Pre-compressed versions of those files (.br, .gz) are accepted too, like the ones Unity builds: for example, game.wasm.br.

Executable programs (.exe, .dll, .sh, .apk…), archives inside the .zip (.zip, .rar, .7z…), shortcuts and symbolic links are not accepted.

What your game can do

Every game runs isolated, on its own domain, so it cannot touch Tradfal or the player's session.

It can

  • Save progress in the browser (localStorage, IndexedDB): each game has its own space.
  • Use the keyboard, mouse, touch screen and sound.
  • Go fullscreen and be muted with the buttons of Tradfal's player.

It cannot

  • Open windows or tabs, or change Tradfal's page.
  • Submit forms, download files or install service workers.
  • Ask for passwords, cards or personal data.

Holding Esc for a second belongs to Tradfal: it hands the keyboard back to the player's controls, so nobody gets stuck if a game keeps the Tab key. A short Esc press still reaches your game (use it to pause), but do not use «hold Esc» for anything else.

The review also flags suspicious signs, like a password field, a cryptocurrency miner or an attempt to break out of the frame, for the team to look at.

If the review rejects it

ProblemHow to fix it
index.html is missingPut it in the main folder of the .zip, not two folders deep.
It is too bigCompress images and audio (WebP, OGG), remove what you do not use or turn on your engine's compression.
A file type that is not allowedRemove that file: it is usually a leftover of the project (.psd, .blend, .exe).
There is an archive insideExtract it and upload its files instead.
An odd name or pathRename it without backslashes, «..» or special characters.
Two files with the same nameThey only differ in case or accents: keep one.

Frequently asked questions

How long does the review take?

Almost always less than a minute. If it takes longer, you can go to the game's page: the review goes on and the page updates itself.

Who sees my game before I publish it?

Only you. Until you publish it, nobody else can see it or play it.

Can it be played on a phone?

The player fits any screen. If your game needs a keyboard or a mouse, say so in «How to play».

Can I change the name later?

Yes, from «Edit». The name must be unique: two games cannot have the same name, even with different capitals.