【问题标题】:How to create html with openfl?如何用openfl创建html?
【发布时间】:2021-08-28 08:31:47
【问题描述】:

我希望能够完全调整游戏区域的宽度和高度。也就是说,我不想调用openfl测试html5,但我想创建自己的html并添加openfl。 (就像在画布上工作)?我该怎么做呢

【问题讨论】:

  • 或连接到html openfl

标签: haxe openfl


【解决方案1】:

您可以在application.xml 中指定自定义 index.html 模板,如下所示:

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

(另见documentation

其他选项是将 OpenFL 应用程序嵌入到 &lt;iframe&gt;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-07
    • 2014-06-02
    • 2020-05-07
    相关资源
    最近更新 更多