> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 秘诀

> 浏览 PlayFab 秘诀,这些秘诀通过分步解决方案组合服务和 SDK,以解决常见的在线游戏场景和集成模式。

使用 PlayFab 实现的熟悉游戏模式和机制。每个秘诀都链接到 GitHub 上的完整可运行示例。

## 玩家留存

* [每日奖品转盘](https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/PrizeWheel) - 根据"奖品转盘"上的值,每天给玩家一个随机礼物。
* [渐进式奖励系统](https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/ProgressiveRewards) - 连续几天登录的玩家会获得一件物品,具体取决于他们的登录连续天数。

## 用户获取

* [推荐代码奖励](https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/ReferralCodes) - 生成并发送代码给朋友,他们可以兑换该代码,为推荐人和自己解锁奖励。
* [交叉推广奖励](https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/SimpleCrossPromotion) - 奖励参与多款游戏的玩家。

## 变现

* [再生货币机制](https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/RegeneratingCurrency) - 一种限制游戏时间的机制(类似于 Candy Crush 生命值),会随时间缓慢补充至最大值。

## 另请参阅

* [常规 PlayFab 示例](/services/playfab/resources/playfab-samples)
* [Multiplayer Servers 示例](/services/playfab/multiplayer/servers/server-samples-resources)
* [Party 示例](/services/playfab/multiplayer/networking/party-samples)
