[免费] [开源] [独立] FA Minigames | 10个小游戏

:video_game: FA Minigames

FA Minigames 是一个完全免费且开源的 10 个可配置小游戏 合集。

旨在轻松集成到您自己的资源中,提供多种难度预设、丰富的配置选项,且不依赖任何框架。

faminigames_gif

:sparkles: 功能特性

  • 10 个开箱即用的小游戏
  • 完全独立运行
  • 免费且开源
  • 无需框架、库存或数据库
  • 多种难度预设
  • 每个小游戏均可独立配置
  • 可自定义 UI 主题
  • 支持的小游戏提供紧凑模式
  • 支持多语言
  • 简单的客户端导出
  • 易于集成到现有资源中

:video_game: 包含的小游戏

  • Drill – 平衡压力、钻孔速度和热量以清除锁销
  • Keypad – 输入或验证四位数字密码
  • Skillbar – 将移动的标记停在目标区域内
  • Sequence – 记忆并重复显示的序列
  • Lockpick – 找到卡点角度并施加正确的扭力
  • Pattern – 记忆并重现高亮的网格图案
  • Wires – 连接匹配的标记通道
  • Circuit – 旋转方块以创建连通的路线
  • Fingerprint – 对齐指纹切片以重建完整指纹
  • Terminal – 在多个终端轨迹中找到所需的令牌

:movie_camera: 效果展示

:laptop: 简单集成

每个小游戏都通过其专属的客户端导出暴露,并在玩家完成后返回结果。

local result = exports.fa_minigames:Skillbar({
    difficulty = 3,
    rounds = 4,
    timeout = 30000
})

if result.success then
    -- Reward the player, continue the script...
else
    print(('Minigame stopped: %s'):format(result.reason))
end

难度预设可以让集成变得更加简单:

local result = exports.fa_minigames:Circuit('easy')

if result.success then
    -- Success
end

可用的预设包括:

easy • medium • hard

当您需要更多控制时,也可以覆盖单个游戏选项。

:artist_palette: 自定义

FA Minigames 支持全局和单次调用的主题自定义,让小游戏能更好地匹配您的服务器或资源的视觉风格。

local result = exports.fa_minigames:Skillbar({
    difficulty = 'medium',
    theme = {
        main = '#101820',
        accent = '#00B8D9'
    }
})

部分小游戏还支持 紧凑模式,在保持玩法不变的同时移除不必要的周边 UI。

:link: 链接

下载

文档

API 参考

Discord


FA Minigames 最初是为我们自己的资源开发的,现在我们将其完全 免费且开源 地发布给 FiveM 社区。

随着我们开发新资源并发现小游戏的新用例,我们将继续扩充这个合集。

发现了 Bug、有想法或想要贡献代码?

欢迎在 GitHub 上提交 issue 或 pull request。 :purple_heart:

查看英文原文 (Original)

:video_game: FA Minigames

FA Minigames is a completely free and open-source collection of 10 configurable minigames.

Designed to be easy to integrate into your own resources, with multiple difficulty presets, extensive configuration and no framework dependency.

faminigames_gif

:sparkles: Features

  • 10 ready-to-use minigames
  • Completely standalone
  • Free & open source
  • No framework, inventory or database required
  • Multiple difficulty presets
  • Per-minigame configuration
  • Customizable UI theme
  • Compact mode for supported minigames
  • Locale support
  • Simple client exports
  • Easy to integrate into existing resources

:video_game: Included Minigames

  • Drill – Balance pressure, drill speed and heat to clear the pins
  • Keypad – Enter or validate a four-digit code
  • Skillbar – Stop the moving marker inside the target area
  • Sequence – Memorize and repeat the displayed sequence
  • Lockpick – Find the binding angle and apply the correct tension
  • Pattern – Memorize and recreate a highlighted grid pattern
  • Wires – Connect matching labelled channels
  • Circuit – Rotate tiles to create a connected route
  • Fingerprint – Align fingerprint slices to reconstruct the print
  • Terminal – Find requested tokens across multiple terminal traces

:movie_camera: Showcase

:laptop: Simple Integration

Each minigame is exposed through its own client export and returns a result once the player finishes.

local result = exports.fa_minigames:Skillbar({
    difficulty = 3,
    rounds = 4,
    timeout = 30000
})

if result.success then
    -- Reward the player, continue the script...
else
    print(('Minigame stopped: %s'):format(result.reason))
end

Difficulty presets can make integrations even simpler:

local result = exports.fa_minigames:Circuit('easy')

if result.success then
    -- Success
end

Available presets are:

easy • medium • hard

Individual gameplay options can also be overridden when you need more control.

:artist_palette: Customization

FA Minigames supports global and per-call theme customization, allowing the minigames to better match the visual style of your server or resource.

local result = exports.fa_minigames:Skillbar({
    difficulty = 'medium',
    theme = {
        main = '#101820',
        accent = '#00B8D9'
    }
})

Several minigames also support a compact mode, removing unnecessary surrounding UI while keeping the gameplay itself unchanged.

:link: Links

Download

Documentation

API Reference

Discord


FA Minigames was originally built for use within our own resources and we’re now releasing it completely free and open source for the FiveM community.

We’ll continue expanding the collection as we develop new resources and find new use cases for minigames.

Found a bug, have an idea or want to contribute?

Feel free to open an issue or pull request on GitHub. :purple_heart:

本文资源搬运自 CFX.re FiveM 官方论坛,原作者:FAScripts。原帖地址:https://forum.cfx.re/t/free-open-source-standalone-fa-minigames-10-minigames/5426007

原帖标签:script, standalone, free

THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容