hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
11.13k stars 663 forks source link

Allow specifying or reuse existing `canvas` #3017

Closed mikeder closed 5 months ago

mikeder commented 5 months ago

Operating System

What feature would you like to be added?

I'd like to reuse an existing canvas element instead of appending one to the bottom of the document.

Why is this needed?

This allows developers to predictably and reliably position their game canvas/screen on an HTML page.

hajimehoshi commented 5 months ago

Use iframe to embed an Ebitengine app.