简体   繁体   English

将链接/按钮下载到游戏

[英]Download Link/Button to a game

Recently I made a simple game in Unity and I want to make a website for this project. 最近,我在Unity中做了一个简单的游戏,我想为这个项目建立一个网站。 So my question is: How I can add a download link to my game? 所以我的问题是:如何为我的游戏添加下载链接? (And when I press the link or the button to download the game, a zip file or a installer) (当我按链接或按钮下载游戏,Zip文件或安装程序时)

Do you have domain and hosting? 您有域名和托管吗?

If you have, you should make an easy html web site, or you can find free templates with search. 如果有的话,您应该建立一个简单的html网站,或者通过搜索找到免费的模板。 Then you can edit it and you can deploy it to hosting. 然后,您可以对其进行编辑并将其部署到托管。

You should be able to use: 您应该可以使用:

<form method="get" action="your-game-file.zip">
    <button type="submit">Download My Game!</button>
</form>

This simply creates a mini form, and actions the document or file you want when the button is clicked. 这只是创建一个迷你表单,并在单击按钮时对所需的文档或文件进行操作。 ;p ,p

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM