下載地址
https://github.com/sniper00/MoonDemo
redis安裝
Redis-x64-3.0.504.msi
服務器配置文件
D:\gitee\moon_server_demo\serverconf.lua
貌似不修改也可以的,redis不要設置密碼
windows編譯
安裝VS2022 Community
下載premake5.exe放MoonDemo\server\moon
雙擊start_server.bat會自動編譯(MoonDemo\server)
前端代碼是unity
MoonDemo\BallAction
下載一個unity2022,我下的Unity 2022.3.57f1c2
打開如果有報錯不用管,直接contine
至此demo就跑起來了