# Embedding a game

Embed Wavedash games on any other website

Source: https://docs.wavedash.com/publishing/embed

A published game can be embedded on any website. Players play the embedded game directly on your page, with the same saves, achievements, and leaderboards as on wavedash.com.

## Copy the embed code

1. Open the game on [wavedash.com](https://wavedash.com)
2. Click the **...** menu
3. Click **Copy Embed Code**

Paste the copied HTML anywhere on your site. Here is the embed code for [Disfigure](https://wavedash.com/games/disfigure):

```html
<div style="position:relative;box-sizing:content-box;width:100%;aspect-ratio:16 / 9;padding-bottom:40px;"><iframe src="https://wavedash.com/embed/games/disfigure" style="position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:14px;" allow="autoplay; fullscreen; clipboard-read; clipboard-write; gamepad; cross-origin-isolated; pointer-lock; orientation-lock; accelerometer; gyroscope; magnetometer; camera; microphone; focus-without-user-activation *; screen-wake-lock; keyboard-map;" allowfullscreen></iframe></div>
```

<div className="docs-embed-live"><iframe src="https://wavedash.com/embed/games/disfigure" title="Disfigure on Wavedash" allow="autoplay; fullscreen; clipboard-read; clipboard-write; gamepad; cross-origin-isolated; pointer-lock; orientation-lock; accelerometer; gyroscope; magnetometer; camera; microphone; focus-without-user-activation *; screen-wake-lock; keyboard-map;" allowFullScreen></iframe></div>

The `<div>` wrapper maintains the game's intended aspect ratio and fills the width of its container, so you can size the embed by sizing its parent element. Keep the iframe's `allow` attribute as-is so features like gamepads and pointer lock keep working inside the iframe.
