← Yop2D

How do I turn my game into a web game (HTML)?

Beginner guide · no code

Français · English · Español · Deutsch · Italiano · Português · Русский · 中文 · 日本語 · العربية

ℹ️ Needs Yop2D version 1300 or newer (the last number of the version, for example 1.0.1300). If your version is older, update Yop2D.

Since version 1300, Yop2D can create a web game: your whole game (images, sounds, nodes) fits in a single .html file. This file plays in a browser (Chrome recommended) on a phone, tablet or computer, with nothing to install and no internet.

You need:

Step 1: create the file

  1. On the start screen, tap your project to select it.
  2. Tap Build APK. A Create the game window opens.
  3. Choose Web game (HTML).
  4. Choose where to save the file (for example Downloads), then wait for the message “Your web game is ready!”.
👉 The file contains the whole game: a game with many images or songs gives a bigger file (often 1 to 5 MB).

Step 2: play

  1. Open the file with Chrome (file manager → Downloads → tap the file → Chrome).
  2. The game starts. Tap the screen once: sound and full screen turn on.
  3. On a computer you play with the mouse; the Esc key works like the phone's back button.
👉 Some apps (messaging apps, file viewers) open the file in a small window that refuses full screen: the game says so in orange. Open it with Chrome instead.

Step 3: share your game

What works in the web game

The web game reads the same nodes as the Android app: physics, lights, particles, screen filters, transitions, tiles, prefabs, joysticks, behaviors, tower defense, turn-based games, choice stories with saves, gallery and player settings… Saves (“Save variables”, the 💾 slots of a story) are kept in the device's browser: they are still there when you close and reopen the game.

If it doesn't work