How to create html with openfl?

151 Views Asked by At

I want to be able to fully adjust the width and height of the playing area. That is, I do not want to call the openfl test html5, but I want to create my own html and add openfl to it. (Like working on canvas)? How can i do it

1

There are 1 best solutions below

0
YellowAfterlife On

You can specify a custom index.html template in application.xml, like so:

<template path="assets/index.html" rename="index.html" />

(also see documentation)

Other option would be to embed the OpenFL application in an <iframe>.