That being the case, you may need to manually edit the output html file, so it does not include the formats not supported by that platform.
Are you able to share some details about what that platform is?
That being the case, you may need to manually edit the output html file, so it does not include the formats not supported by that platform.
Are you able to share some details about what that platform is?
The platform I uploaded only supports the “. ttf” font format,
And it does not support the “. zip” format,
Unsupported files uploaded to the platform will be filtered out,
So that’s why I asked about the “swf” library we discussed earlier if it’s possible to customize. zip to other. xx formats (. xx is still zip)
It is an “html5” online gaming platform in China,
It’s called ‘4399 Mini Games’, and I plan to upload my developed mini game on this platform. The address is: https://www.4399.com/ “
I don’t know if you can visit abroad
Yeah that’s a bit tricky. I was able to access it and review some information, but I couldn’t find anything specific to technical upload requirements.
The “upload instructions” ( 上传须知 ) are more like terms and conditions than any technical advice.
https://www.4399.com/notice/upknow.htm
With those sorts of platforms, I imagine you are going to need to conform to their set standards.
.
The file formats in the package are limited to:
.
htm、html、js、css、jpg、jpeg、gif、png、mp3、ogg、m4a、xml、csv、dat、data、atf、json、plist、wav、thm、fnt、exportjson、ttf、tmx、exml、datagz、jsgz、memgz、unityweb、scml、scon、ani、atlas、lani、lh、lmat、lm、sk、ls、lav、wasm、pck、fui、ltc、prefab、part、ltcb、lamat、txt、dbbin、scene、gz、mp4、bundle、webp、webm
.
If you cannot use -final due to reflection or other dynamic usage, then I would suggest trying -minify instead. -minify will make the output file size smaller without enabling Haxe’s DCE.
.
@Bink
@joshtynjala
.
Good morning, I would like to ask, what is the “design resolution” of everyone in “HTML5”?
.
There are so many variables with HTML5 resolution if you’re expecting to target multiple devices. Desktop, mobile, tablet, landscape, portrait, 4k, 1080p, and all that’s in-between, for example.
You’ll need to make some choices on how to handle that. Is it to be responsive (is that even feasible for your project)? Is it a fixed size (the default)? Fixed to what (landscape, portrait)?
My most recent HTML5 project was specifically for mobile devices in portrait, and I used a resolution of 1080x2160.
.
The HTML5 game definitely needs to run on multiple devices,
This is the cross platform advantage of the “HTML5” game,
So we need to do screen adaptation,
As far as I know, screen adaptation requires a design resolution,
That’s why I asked you, who have been developing for many years, if you hope to get a solution
.
I think the design resolution of “1080x2160” you mentioned above is too large ..
.
Depending on your needs, and your estimated target devices, you could be quite right.
If anything though, based on modern mobile spec, this is still leaning towards the modest end of mobile resolutions. There is not a single flagship mobile device released in the last 4 years (and possibly longer) that I’m aware of, that is less than this resolution.
| Width | Height | |
|---|---|---|
| Apple iPhone | ||
| 17 | 2622 | 1206 |
| 16 | 2556 | 1179 |
| 15 | 2556 | 1179 |
| 14 | 2532 | 1170 |
| 13 | 2532 | 1170 |
| Google Pixel | ||
| 10 | 2424 | 1080 |
| 9 | 2424 | 1080 |
| 8 | 2400 | 1080 |
| 7 | 2400 | 1080 |
| 6 | 2400 | 1080 |
| Samsung | ||
| S25 | 2340 | 1080 |
| S24 | 2340 | 1080 |
| S23 | 2340 | 1080 |
| S22 | 2340 | 1080 |
| S21 | 2400 | 1080 |
| Huawei | ||
| Mate70 | 2832 | 1316 |
| Mate60 | 2688 | 1216 |
| Mate50 | 2700 | 1224 |
| Average | 2490 | 1137 |
My target of 1080x2160, 1:2, which is a slightly shorter aspect than the average (1 : 2.19), accounted for the presence of the browser bar at the top.
My horizontal resolution of 1080 was on the lowest end of available resolutions.
Good morning
Thank you for providing this information, it is very valuable as a reference,
May I ask,
What is the size of the monitor for Steam game players now? Are all screens high-definition?
Fortunately, information on that is fairly readily available:
The primary resolution for most users (53.47% as of October 2025) is still 1920x1080.
Next would be 2560x1440 (19.93%).
Our gaming system (Linux + Steam) runs on a 4K display in the lounge room. But, I have it set to 1920x1080, because it’s not up to 4K gaming. Occasionally I bump it up to 2560x1440. The Steam stats reflect my experience at least.