Giter Site home page Giter Site logo

cocos-doudizhu's Introduction

Cocos Creator 4 斗地主

概述

使用creator开发的斗地主, 使用socket通讯,实现了斗地主基本的功能,方便入门的同学参考。

开发环境

  1. Cocos Creator V1.3.0
  2. Nodejs
  3. socket.io

环境搭建步骤

  1. 安装nodejs,以及express,socket.io模块
  2. cd到server.js所在目录(将server目录下的三个js文件copy到express项目下面), 运行: node server.js
  3. 打开creator,打开本实例工程,运行即可。

已实现功能

  1. 创建房间跟加入房间
  2. 服务端洗牌发牌
  3. 点击选牌,拖拉选牌,双击取消所选牌
  4. 牌型校验

游戏截图

image

cocos-doudizhu's People

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.