Code Monkey home page Code Monkey logo

a-wechat-game-of-three-kingdoms-for-territorial-supremacy-bc's Introduction

项目名称

微信小游戏——圈地大作战

项目简介

这是软件工程实训中完成的一个项目。项目具有完整的开发流程,从需求与选型,到开发协作,再到重构,最后进行测试与集成,每一个环节都书写了完整的文档,包括需求文档、技术调研与选型文档、交叉测试文档、功能测试计划、API文档说明书、部署文档等等,并且使用Git进行软件的版本管理,建立MileStone和Issue,使用Git Hooks进行自动化管理,配置GitLab CI流水线辅助项目测试,使用Eslint检测代码风格,用Mocha进行单元测试。项目开发使用的工具和技术主要有:Cocos Creator游戏开发引擎、Matchvs服务器引擎、微信开发者工具等。

游戏规则

游戏分为三种模式,分别是人机对战、实时对战、房间模式。每一种模式下又有1V1、2V2、3V3三种游戏场景可供选择。玩家可以在房间模式中创建游戏房间,邀请微信好友一起对战。每局游戏限时5分钟,玩家可以使用金币购买加速道具和复活道具。每一个玩家代表的是一个三国中的人物,游戏结束时,领地面积大的一方获胜。

脑图1:

010

脑图2: 011

环境准备

  1. 下载安装cocos creatorv1.8.1或以上版本
  2. 在cocos creator商店中下matchvs载插件, 对应的教程
  3. 用cocos creator打开该项目

运行游戏

  1. 在cocos creator打包输出微信小游戏项目,点击cocos creator上的导航栏中的项目
  2. 在构建发布界面中,发布平台为"Wechat Game",填入appid(如果是你自己的项目,你需要在微信开发者平台中申请). snipaste20180713_142322.png
  3. 点击构建,之后发布.
  4. 用微信开发者工具打开. snipaste20180713_142751.png
  5. 当我们写好代码,发布到微信小游戏平台中就可以愉快的玩耍了 snipaste20180713_142555.png

项目界面展示

微信授权登录

001

002

游戏大厅

003

微信胜率排行榜

004

游戏商店

005

游戏二级界面——选择游戏场景

006

游戏准备界面

008

玩家游戏中对抗界面

009

Matchvs控制台数据监控

007

作者

段风志

a-wechat-game-of-three-kingdoms-for-territorial-supremacy-bc's People

Contributors

duanfengzhi 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.