Skip to content

an unity mmo demo, include client and server, base on ecs(game play), xlua(ui) and skynet(server)

License

Notifications You must be signed in to change notification settings

modi0012/UnityMMO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

369 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityMMO

做游戏几年了,很多东西不好在工作项目上尝试(比如ECS),所以就有了本项目,我打算利用业余时间从头制作一个3D-MMO游戏,很多功能虽然都接触过,但我想换个做法(不然就不好玩了),反正没人逼着上线.前端上使用xlua,玩法系统用c#(主要是想用unity2018推的ECS,虽然目前还未完善各大系统都未对接不能用pure ecs),界面就用lua开发就行了.后端用Skynet(对比了其它几个开源项目后还是觉得skynet最简洁)

使用方法

克隆本项目:git clone https://github.com/liuhaopen/UnityMMO.git --recurse
前端:
下载下来后整个目录就是Unity的项目目录,用Unity打开,运行main.unity场景即可进入游戏的登录界面
注:由于游戏资源过大且经常变更(每个版本的资源都会保存在.git文件夹里,clone就要好久了),所以放到另外的项目管理,可在UnityMMO-Resource下载里面的文件并把Assets/AssetBundleRes及其meta文件复制到本项目的Assets目录里(注:有些插件因为版权问题就没上传了,从其中的download-page见购买链接)
后端:
)安装虚拟机,我使用的是CentOS7,然后设置整个项目目录为虚拟机的共享目录,cd到Server目录,先编译skynet:skynet主页
)在虚拟机安装mysql并导入Server/data/里的两个数据库文件
)运行:./run.sh跑起服务端

Status and prerequisites

Current status at a glance:

Unity version: 2019.1.4f1
Platforms    : client for Windows and Android;server only for Linux

开发笔记

Wiki

近况Gif

19.07.03:初步实现了自动寻路去找npc对话和打怪两种任务:
image

About

an unity mmo demo, include client and server, base on ecs(game play), xlua(ui) and skynet(server)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 64.2%
  • Lua 22.3%
  • C 8.5%
  • CMake 2.6%
  • ShaderLab 1.0%
  • HTML 1.0%
  • Other 0.4%