Skip to content

H-J-F/EjectGame

Repository files navigation

EjectGame

EjectGame 毕业设计

Unity3D+PhotonServer+MySQL开发

项目实现了多语言框架、UI指针响应框架、不规则图形按钮、JoyStick、信息同步等内容

需要安装PhotonServer,并将PhotonServerConfig下的MyGameServer文件夹放在 "PhotonServer目录"/deploy/ 下,并在"PhotonServer目录"下的PhotonServer.Config文件完成加上服务器启动的配置。

配置内容如下:

     <!-- 0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. 
     Port 5055 is Photon's default for UDP connections.  -->
    <UDPListeners>
      	<UDPListener
			IPAddress="0.0.0.0"
			Port="5055"
			OverrideApplication="EjectGame">
      	</UDPListener>
    </UDPListeners>

    <!--  0.0.0.0 opens listeners on all available IPs. Machines with multiple IPs should define the correct one here. 
     Port 4530 is Photon's default for TCP connecttions. 
     A Policy application is defined in case that policy requests are sent to this listener (known bug of some some flash clients)  -->
    <TCPListeners>
      	<TCPListener
			IPAddress="0.0.0.0"
			Port="4530"
			PolicyFile="Policy\assets\socket-policy.xml"
			InactivityTimeout="10000"
			OverrideApplication="EjectGame"
			>
      	</TCPListener>
    </TCPListeners>

    
    <!--  Policy request listener for Unity and Flash (port 843) and Silverlight (port 943)   -->
    <PolicyFileListeners>
       <!-- multiple Listeners allowed for different ports  -->
      	<PolicyFileListener
	        IPAddress="0.0.0.0"
	        Port="843"
	        PolicyFile="Policy\assets\socket-policy.xml"
	        InactivityTimeout="10000">
      	</PolicyFileListener>
      	<PolicyFileListener
	        IPAddress="0.0.0.0"
	        Port="943"
	        PolicyFile="Policy\assets\socket-policy-silverlight.xml"
	        InactivityTimeout="10000">
      	</PolicyFileListener>
    </PolicyFileListeners>

    <!--  WebSocket (and Flash-Fallback) compatible listener  -->
    <WebSocketListeners>
      	<WebSocketListener
	        IPAddress="0.0.0.0"
	        Port="9090"
	        DisableNagle="true"
	        InactivityTimeout="10000"
	        OverrideApplication="EjectGame">
      	</WebSocketListener>
    </WebSocketListeners>


    <!--  Defines the Photon Runtime Assembly to use.  -->
    <Runtime
		Assembly="PhotonHostRuntime, Culture=neutral"
		Type="PhotonHostRuntime.PhotonDomainManager"
		UnhandledExceptionPolicy="Ignore">
    </Runtime>


    <!--  Defines which applications are loaded on start and which of them is used by default. Make sure the default application is defined. 
     Application-folders must be located in the same folder as the bin_win32 folders. The BaseDirectory must include a "bin" folder.  -->
    <Applications Default="EjectGame">

      	<!--  My Game Application  -->
      	<Application
			Name="EjectGame"
			BaseDirectory="EjectGameServer"
			Assembly="EjectGameServer"
			Type="EjectGameServer.EjectGameServer"
			ForceAutoRestart="true"
			WatchFiles="dll;config"
			ExcludeFiles="log4net.config">
      	</Application>

    </Applications>
</MyGameInstance>

开场动画

image

开场动画(遭遇危险)

image

登陆界面

image

加载界面

image

主界面

image

设置界面 image

更换语言等设置

image

对战画面

image

手机端战斗界面

image

游戏胜利

image

游戏结束

image

About

EjectGame 毕业设计

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published