1 Star 14 Fork 17

zum / TSGF-demos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

  • 对接 TSGF (ts-gameframework) 的客户端示例合集, 示例列表:

    • sdk-baseMatch: 最简 Demo,对接 tsgf-sdk 的简单匹配联机示例(含手动创建房间和加入房间功能) 效果

      预览地址:

      qrcode

    • attack: 在最简 Demo 的基础上,加上攻击的互动 效果

  • 所有示例均使用的规范:

    • 预览模版构建模版 中区分配置 (开发时 预览模版 配置本地地址, 部署生产时用 构建模版 配置生产地址)
    • 入口场景皆为 ./assets/scene/MainScene.scene

PS:“模拟开发者应用站地址” 说明:所有对接 tsgf-sdk 的开发者,都必须使用自己的玩家的 openid 在服务端调用 TSGFapi 获取授权,才能使用 tsgf-sdk 连接到服务器,所以才有 “开发者应用站点” 的概念

启动

服务端(多种方式,任选其一)

客户端

  1. 示例目录下(如 ./sdk-baseMatch/)运行命令 npm i 初始化npm包(执行一次即可)
  2. 导入 Cocos Creator
  3. 打开场景 ./assets/scene/MainScene.scene
  4. 运行调试(可启动多个预览窗口,用于测试互联)

QQ交流群

QQ群

引用

项目中引用的模型:

Pomu Rainpuff Nijisanji EN by scuffward is licensed under Creative Commons Attribution.

MIT License Copyright (c) 2022 一块砖两百块 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

TSGF框架的客户端demo集成 展开 收起
TypeScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/fengssy/tsgf-demos.git
git@gitee.com:fengssy/tsgf-demos.git
fengssy
tsgf-demos
TSGF-demos
master

搜索帮助