godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.17k stars 98 forks source link

Create an HTML instant game template (for example Facebook) #2695

Open szzsk opened 3 years ago

szzsk commented 3 years ago

Describe the project you are working on

I would like to make HTML instant games with this fantastic game engine

Describe the problem or limitation you are having in your project

I can't make html instant games including Facebook instant games

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Making HTML instant games is very important nowadays. So this feature would be gap filling

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I can't do that.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No...

Is there a reason why this should be core and not an add-on in the asset library?

I didn't find anything about it,,,,

YuriSizov commented 3 years ago

I can't do that.

Well, you have to at least explain why the existing HTML export functionality doesn't work for you and what exactly instant games are. Otherwise this is not a proposal and we cannot even discuss it.

Calinou commented 3 years ago

Last time I checked, Facebook instant games impose strict limits on file size (2 MB?). Godot can't satisfy this limit, even if you compile a custom export template with all features disabled.

szzsk commented 3 years ago

I can't do that.

Well, you have to at least explain why the existing HTML export functionality doesn't work for you and what exactly instant games are. Otherwise this is not a proposal and we cannot even discuss it.

Yes, you are right. I mean instant games "prefer" canvas powered (which has a smaller size) games rather webassembly powered games.

szzsk commented 3 years ago

Last time I checked, Facebook instant games impose strict limits on file size (2 MB?). Godot can't satisfy this limit, even if you compile a custom export template with all features disabled.

I have read that Facebook recommends that you try to keep this as small as possible and aim for a 1MB initial download, but the total size of your bundle can be up to 200MB (?????)

Jeyanthinath commented 1 year ago

Any progress on this? any roadmap for this feature?

Calinou commented 1 year ago

Any progress on this? any roadmap for this feature?

To my knowledge, nobody is currently working on implementing this.

That said, we still lack a description of what needs to be done to implement this, and according to this comment, it may not be viable to support anyway. Godot 4 will not work either on most instant game platforms because of the current threads requirement. This requirement may be lifted in a future release, but there's no guarantees.