2 Star 6 Fork 0

如此良人何 / ImpactDivision

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

全境崩坏; 类型:第三人称越肩视角射击游戏,多人在线对战; 开发环境:Unity 2018.2.20f1;

游戏下载: 百度网盘链接:https://pan.baidu.com/s/12nfdGyenn2d1BH6fqpzpcg 提取码:a9wh

最少两人匹配进行对战

源码使用指南

准备软件

Unity 2018.2.20f1(不能使用高于2018.2的版本,因为2018.3对预制体系统大改,高版本会导致工程文件稀巴烂)


本地运行服务器

安装Photon Server,安装包在工程文件根目录下:【photon-server-sdk_v4-0-29-11263】。

安装后打开【"..\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\bin_Win64\PhotonControl.exe"】,运行服务器。

在系统托盘里右键点击图标,选择菜单中的【Start Application】,默认启动的是IP 127.0.0.1

vPoyss.png


修改游戏中的photon设置

Unity打开工程,点击【Window】【Photon Unity Networking】【PUN Wizard】。

在打开的面板里点击【Setup Project】,AppId有就填,没有就【Skip】,然后点【Close】。

Hosting选择【Self Hosted】;

Server Address填本地默认ip:127.0.0.1;

其他不用变。


游戏启动

打开场景【Assets/Resources/Scenes/StartStage】,运行。


修改进入战斗的最小人数

打开【Assets/Resources/Scenes/MainStage】场景

vPHaIx.png vPHBRO.png


服务器运行

首先需要把服务器系统改为Win,同样运行Photon Server,

在服务器图标右键菜单里把IP选择成你服务器的公网IP,

vPbFT1.png

同理,Unity中Photon设置中的IP也改为服务器ip,就可以让别人也连接自己的服务器了。


其他

  • 已移除版本检测。
  • 服务器刚启动时可能连不上,等一会再连。
  • Photon Server有免费100连接数许可,具体获取方法看官网。
  • 网络相关操作在PhotonEngine脚本中。
MIT License Copyright (c) 2024 如此良人何 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Unity+Photon制作的崩坏3同人,第三人称多人联网竞技射击游戏 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhaige95/ImpactDivision.git
git@gitee.com:zhaige95/ImpactDivision.git
zhaige95
ImpactDivision
ImpactDivision
master

搜索帮助