- 它拥有可用的Android/IOS/Mac/Window/HTML5/小游戏等平台开箱即用的能力,同时它自身带了一个易用API,例如一些常用的组件:按钮、Spine、ttf文本等。不使用该API,仍然可以使用该库进行编译。
- It has the out of the box ability of available android/ios/mac/window/html5/ games and other platforms. At the same time, it comes with an easy-to-use API, such as some commonly used components: buttons, spine, TTF text, etc. Without using this API, you can still compile with this library.
The current status is open, and there will be a lot of problems to be solved.
haxelib git zyheaps https://github.com/rainyt/zyheaps.git
- 建议使用rainyt分叉的heaps版本:https://github.com/rainyt/heaps,它兼容了IOS高DPI,触摸等问题。当HeapsIo/heaps正式修正了这些问题后,将合并版本。
- It is recommended to use the rainyt forked heaps version, which is compatible with IOS, high DPI, touch and other issues. When heapsio/heaps formally fixes these problems, the version will be merged.
Support | IOS | Android | Mac | HTML5 | Window |
---|---|---|---|---|---|
默认的高DPI(High DPI) | ✅ | ✅ | ✅ | ✅ | ✅ |
正常触摸(Touch) | ✅ | ✅ | ✅ | ✅ | ✅ |
中文渲染TTF(Font TTF) | ✅ | ✅ | ✅ | ✅ | ✅ |
XML格式精灵图(Sprite XML format) | ✅ | ✅ | ✅ | ✅ | ✅ |
动态加载资源(Dynamic load assets) | ✅ | ✅ | ✅ | ✅ | ✅ |
编译支持(Build stats) | ✅ | ✅ | ✅ | ✅ | ✅ |
异步加载(Async load) | ✅ | ✅ | ✅ | ✅ | ✅ |
网络请求(Network) | ✅ | ✅ | ✅ | ✅ | ✅ |
过渡动画(Actuate) | ✅ | ✅ | ✅ | ✅ | ✅ |
文件选择器(FileDialog) | ❌ | ❌ | ✅ | ✅ | ❌ |
输入法(IME) | ❌ | ❌ | ✅ | check | ✅ |
由于升级到1.10.0版本,一些工作还没完成,因此会存在一些问题,这里做标记:
- HTML5 [通过]
- IOS [未测试]
- Android [通过]
- Mac [通过]
- Window [未测试]
请注意使用IME需要rainyt/hlsdl
库支持,可通过安装:
haxelib git hlsdl https://github.com/rainyt/hlsdl.git
- 色块(Quad) zygame.display.Quad
- 文本(Label) zygame.display.Label (支持中文的文本组件)
- 按钮(Button) zygame.display.Button
- 图片/九宫格图片(Image) zygame.display.Image
- 列表/列表Item(ListView) zygame.display.ListView & zygame.display.ItemRenderer
- 场景管理(SceneManager) zygame.utils.SceneManager
- UI自动构造器(XMLBuilder) zygame.res.XMLBuiler
- 竖向排序容器(VBox) zygame.display.VBox
- 横向排序容器(HBox) zygame.display.HBox
- 场景(Scene) zygame.display.Scene
- Spine动画(Spine) zygame.display.Spine
- 进度条(Progress) zygame.display.Progress
- 滚动窗口(ScrollView) zygame.display.ScrollView
- 列表窗口(ListView) zygame.display.ListView
- 文本输入(TextInput) zygame.display.TextInput
- 下拉框(DownListView) zygame.display.DownListView
- 横向切割容器(HDividedBox) zygame.display.HDividedBox
- 竖向切割容器(VDividedBox) zygame.display.VDividedBox
- 按钮(BButton) zygame.display.batch.BButton
- 容器(BBox) zygame.display.batch.BBox
- 图片(BImage) zygame.display.batch.BImage
- 位图文字(BLabel)
- 九宫格图
- 你可以在VSCode的插件商店中搜索
Heaps
,进行安装插件,该插件会检测zyheaps.xml
配置文件进行编译。 - https://github.com/rainyt/heaps-vscode-extension
- You can search 'Heaps' in the vscode plug-in store to install the plug-in, which will detect 'zyheaps.XML' configuration file.
- Actuate:https://github.com/openfl/actuate
- 使用内置的heaps.update进行更新,得到丝滑流畅效果。
第三方库 | Mac | Window | IOS | Android |
---|---|---|---|---|
SDL | 2.24.0 | 2.24.0 | uncheck | uncheck |