Coder Social home page Coder Social logo

dj2amir / unitymmo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liuhaopen/unitymmo

0.0 0.0 0.0 53.95 MB

an unity mmo demo, base on ecs(game play), xlua(ui)

License: MIT License

C# 38.24% Batchfile 0.07% Lua 41.29% Makefile 0.11% HTML 1.44% Shell 0.05% C++ 0.09% CMake 3.87% C 12.94% ShaderLab 1.56% HLSL 0.23% TSQL 0.11%

unitymmo's Introduction

UnityMMO A lot of things are not good at working projects (such as ECS), so I have this project. I plan to make a 3D-MMO game from scratch in my spare time. Although most of the functions have been touched, I want to change the practice, otherwise It's not fun. The front-end gameplay system uses c#, the interface is developed with lua. The backend uses skynet.

For detailed design and progress, see: Wiki

Usage Clone the project: git clone https://github.com/liuhaopen/UnityMMO.git --recurse

Frontend:

After downloading, the entire directory is the project directory of Unity, open it with Unity, run the main.unity scene to enter the login interface of the game.

Note: Since the game resources are too large and often changed (each version of the resource will be saved in the .git folder, clone will take a long time), so put it in another project management, in UnityMMO-Resource Download the files and copy the Assets/AssetBundleRes and their meta files into the Assets directory of the project (note: some The plugin was not uploaded due to copyright issues. See the purchase link from the download-page.)

Backend:

Install a virtual machine, I use CentOS7, then set the entire project directory to the shared directory of the virtual machine, cd to the Server directory and compile skynet: skynet home page

Install mysql (or MariaDB) on the virtual machine and import both database files located in Server/data/

Run: ./run.sh to Run the server (if you want to extract the Server directory separately to other machines, remember to copy the Config, Proto, Common directories in UnityMMO/Lua and maintain the directory hierarchy. )

Status & Prerequisites Unity version: 2019.1.4f1 Platforms: Client is for Windows and Android(should also support iOS, but I haven't tested); Server is only for Linux; Recent GIF 19.07.03: Initially realized automatic pathfinding to find npc dialogue and Daguai two tasks: GIF1 19.07.10: Add a copy scene: GIF2 19.07.31: Initial completion of the backpack and GM system

19.08.11: Initial completion of the skill component based on the action component, see Server/lualib/Action and FightMgr, Hurt and PickTarget.lua

19.08.13: Complete the resurrection process

19.08.28: I have recently tested on mobile phones, optimizing one wave: camera operation, resource preloading, object pooling, and using the AutoLOD plugin to generate two levels of simple mode for each scene node (in fact, many models are at the farthest point) It can be replaced by a patch, that is, the bulletin board is always facing the camera, but even if there is no art resource, the tree has deleted a lot of tens of thousands of triangles. Light baking was changed to use Distance ShadowMask, near real-time shadow map. I can run it smoothly on my junk phone for the time being.

unitymmo's People

Contributors

liuhaopen avatar ericddk avatar cloudfreexiao avatar dj2amir 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.