Git Product home page Git Product logo

tcb-game-gomoku's Introduction

在线对战五子棋

这是一次关于 云开发 & 小程序 & 游戏开发 的深度实践。 -- 作者

为什么用云开发?

不同于传统的微信 / 游戏开发模式,借助云开发的云数据库、云函数、云存储,开发者只需要关心核心业务逻辑,以统一的代码风格开发一款应用。同时,这也会推动传统的前端开发者进一步学习数据库等后端知识,提高技能,探索更大可能性。

举个🌰:开发者需要理解和应用「聚合搜索」,本项目的世界排行榜就是一个不错的例子。

再举个🌰:开发者需要理解和应用「实时数据库」,本项目的实时对战的实现就是一个不错的例子。

老举个🌰:开发者需要弱化后端的概念,本项目的获取用户信息就是一个不错的例子。不再需要「准备服务器 => 备案域名 => 编写后端服务 => 配置微信安全域名」。仅仅需要「编写云函数 => 调用云函数」。

⚠️:由于「实时数据库」内测中,所以对外放出的版本是以「轮询」代替。

快速开始

下载项目:

git clone [email protected]:TencentCloudBase/tcb-game-gomoku.git tcb-game-gomoku

打开「微信开发者工具」,导入此项目。进入后,在上方工具栏开通「云开发」。

进入「云数据库」,创建 rooms / scores / users 这三个集合。

创建配置文件,并将其中信息替换为自己的信息:

cd tcb-game-gomoku
cp src/config.example.js src/config.js

开发者工具中,上传 cloudfunctions/ 下的「云函数」。

UI 设计

游戏大厅

排行榜

游戏对战

架构流程

用户登陆鉴权

游戏大厅

排行榜

实时对战

tcb-game-gomoku's People

Contributors

dongyuanxin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.