Online Card Game Template for Unity
Features
-Card game gameplay (Play, Attack, Mana, HP, Abilities)
-Solo and Multiplayer
-Desktop and Mobile controls
-User Login and User Database (Web API)
-Dedicated Authoritative Game Server
-Simple Matchmaking
-Card Collection, Pack Opening, In-Game Currency
-Leaderboard and Friend list
-AI made with Minimax algorithm
-Customizable Card Abilities
Structure
There are 3 main app instances:
-Game Client (Unity)
-Game Server (Unity)
-Optional Web API (NodeJS and MongoDB)
Networking Framework
Tcg Engine uses Netcode for Gameobjects, the official Unity Networking framework.
Why TCG Engine over similar assets?
-Tons of extra features (AI, Pack open, User Login, ELO ranking...)
-Cards and Abilities use Scriptable Objects
-Multiple games can run on a single server process
-Run the game in Unity directly from any scene (faster testing)
-Client and Game Server use the same Unity Project
-Game logic uses the same code for: Solo, Multiplayer and AI predictions
-UI and Visuals code is well separated from the core rules and effects code.
-Using the official Unity Networking: Netcode (no 3rd party asset required)
-Secured web api for login uses https and jwt
-Author of this asset has worked on several card games for various clients
-Fast and accessible support on Discord
Current Limitations
-Limited to one or two players per match only
-WebGL build requires 3rd party integration for Netcode to work
-No gamepad support
*Music and SFX from the trailer not included in the asset.
Coding
This is not a no-coding asset. And while cards and abilities can be edited directly from the data files (scriptable objects), you will need to edit the code to add features or change the core game rules. I made the decision to not include any custom editor GUI to keep the code as simple as possible and useable for a varied level of programming skills. I put a high priority on keeping the code clean and well structured. We have a Discord community for people to help each other if you are just starting with coding. And I will be glad to listen to any feedback to improve the code in future versions if needed. More info in the doc.
适用于 Unity 的在线纸牌游戏模板
特点
-卡牌游戏玩法(玩法、攻击、法力、HP、能力)
-单人和多人游戏
-桌面和移动控制
-用户登录和用户数据库(Web API)
-专用权威游戏服务器
-简单的匹配
-卡牌收集、开包、游戏内货币
-排行榜和好友列表
-采用 Minimax 算法的人工智能
-可定制的卡牌能力
结构
有 3 个主要应用程序实例:
-游戏客户端(Unity)
-游戏服务器(Unity)
-可选 Web API(NodeJS 和 MongoDB)
网络框架
Tcg Engine 使用官方 Unity 网络框架 Netcode for Gameobjects。
为何选择 TCG 引擎而非类似资产?
-大量额外功能(人工智能、包打开、用户登录、ELO 排名...)
-卡牌和能力使用可脚本对象
-一个服务器进程可运行多个游戏
-可从任何场景直接在 Unity 中运行游戏(加快测试速度)
-客户端和游戏服务器使用相同的 Unity 项目
-游戏逻辑使用相同的代码: 单人、多人和 AI 预测使用相同的代码
-用户界面和可视化代码与核心规则和特效代码完全分离。
-使用官方 Unity 网络: 网络代码(无需第三方资产)
-登录使用 https 和 jwt 的安全网络 api
-该资产的作者曾为不同客户开发过多款纸牌游戏
-Discord 上快速便捷的支持
当前限制
-每场比赛仅限一到两名玩家参加
-WebGL 构建需要第三方集成 Netcode 才能运行
-不支持游戏手柄
|