找回密码
 立即注册
搜索

[完整项目] Facebook Instant Game Exporter 1.2.1

[复制链接]
204 |0
发表于 2023-2-21 15:30:15 | 显示全部楼层 |阅读模式


















Help to make game run on Facebook Instant Game Platform both Web & Messenger.

Important update:
Do not require install Facebook addon!
Do not require install Facebook addon!
Do not require install Facebook addon!

Version changes:
Ver 1.2.1
1. Add API
a. void FBInstant.payments.onReady(System.Action cb)
b. void FBInstant.payments.getCatalogAsync(System.Action<FBError, Product[]> cb)
c. void FBInstant.payments.purchaseAsync(PurchaseConfig purchaseConfig, System.Action<FBError, Purchase> cb)
d. void FBInstant.payments.getPurchasesAsync(System.Action<FBError, Purchase[]> cb)
e. void FBInstant.payments.consumePurchaseAsync(string purchaseToken, System.Action<FBError> cb)
f. bool FBInstant.payments.isSupportPayments()
2. API Demo
3. Update Document

Ver 1.1.1
1. Add API FBInstant.context.getPlayersAsync
2. Game Main Entry Script can be placed in other directory
3. Update Document

Ver 1.0.9
1. Update Document.Only Support Ver 2018 & Ver 2019. It's hard to success test on Ver 2020.

Ver 1.0.8
1. Support Unity 2019.Tested with Unity 2019.1.14f1. If you are useing older verion like 2018. You no need to upgrade to this version.
2. Unity 2019 use fb-instant SDK 6.3.

Ver 1.0.7
1. API Changed(Compatible with older version):
FBInstant.PreloadRewaredVideoAd (string adId) to
FBInstant.PreloadRewaredVideoAd (string adId, System.Action<bool> onReadCallback = null)

Ver 1.0.6
1. Add API FBInstant.player.canSubscribeBotAsync
2. Add API FBInstant.player.subscribeBotAsync

Ver 1.0.5
1. Add API HTMLCanvas.GetScreenShotBase64

=================================
1. Use Instant SDK 6.2
2. Support get player info
3. Support get set data
4. Support get set leaderboard data
5. Support play interstitial AD
6. Support play rewarded video AD
7. Support share
8. Support choose context
9. Test success on running Instant game on localhost
10.Test success on RedMi 5 Plus
11.Test success on iPhone 5

Game dev workflow as :
Prerequisite :
1. Create App on Facebook
2. Install Unity 2018.1.1
3. Install WebGL addon

Common practice :
1. Create new Unity Project
2. Switch Platform to WebGL
3. Import this asset
4. Open DemoScene and add scene to Build Settings
5. Click "Build" Button to build WebGL project, the output directory **MUST** named "web"
6. Test the game on localhost
7. Zip the "web" directory and upload the .zip to Facebook via web hosting tab
8. Test the game on mobile device both Android & iOS and web platform

Knowing Issue:
1. Require include font file to display other languages expect English
2. Build time is a little longer


帮助游戏在Facebook即时游戏平台Web和Messenger上运行。

重要更新:
不需要安装Facebook插件!
不需要安装Facebook插件!
不需要安装Facebook插件!

版本变化:
版本1.2.1 "
1. 添加API
a. void FBInstant.payments.onReady(系统。行动cb)
b. void FBInstant.payments.getCatalogAsync(系统。操作<FBError, Product[]> cb)
c.取消联邦调查局的付款。purchaseAsync(PurchaseConfig,系统。动作<FBError,购买> cb)
d. void FBInstant.payments.getPurchasesAsync(系统。动作<FBError, Purchase[]> cb)
e.取消联邦调查局的付款。consumePurchaseAsync(string purchaseToken,系统。行动< FBError > cb)
f. bool FBInstant.payments.isSupportPayments()
2. API演示
3.更新文档

版本1.1.1
1. 添加API FBInstant.context.getPlayersAsync
2. 游戏主入口脚本可以放在其他目录
3.更新文档

版本1.0.9
1. 更新文档。只支持2018版和2019版。很难在2020版本上成功测试。

版本1.0.8
1. 支持Unity 2019。使用Unity 2019.1.14f1测试。如果你使用的是2018年的旧版本。您不需要升级到这个版本。
2. Unity 2019使用fb-instant SDK 6.3。

版本1.0.7
1. API更改(与旧版本兼容):
FBInstant。PreloadRewaredVideoAd(字符串adId)到
FBInstant。PreloadRewaredVideoAd(字符串adId,系统。Action<bool> onReadCallback = null)

版本1.0.6
1. 添加API FBInstant.player.canSubscribeBotAsync
2. 添加API FBInstant.player.subscribeBotAsync

版本1.0.5
1. 添加API HTMLCanvas。GetScreenShotBase64

=================================
1. 使用Instant SDK 6.2
2. 支持获取球员信息
3.支持获取集合数据
4. 支持获取集排行榜数据
5. 支持插播广告
6. 支持播放奖励视频广告
7. 支持分享
8. 支持选择上下文
9. 在本地主机上运行即时游戏测试成功
10.红米5 Plus测试成功
11.在iPhone 5上测试成功

游戏开发工作流程如下:
先决条件:
1. 在Facebook上创建应用
2. 安装Unity 2018.1.1
3.安装WebGL插件

常见做法:
1. 创建新的Unity项目
2. 切换平台到WebGL
3.导入该资产
4. 打开DemoScene并将场景添加到构建设置
5. 点击“Build”按钮构建WebGL项目,输出目录**MUST**命名为“web”
6. 在本地测试游戏
7. 压缩“web”目录,并通过虚拟主机标签上传。Zip到Facebook
8. 在Android、iOS和网页平台上测试游戏

了解的问题:
1. 需要包含字体文件来显示除英语以外的其他语言
2. 构建时间稍长





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表