DIS Project Demo
Participant:
r91725057 钟玲玲
r92725015 苏颂凯
r92725043 萧铭宏
Motivation
1.因为游戏王漫画的流行,带动游戏以及实体相关玩具的热卖,目前的游戏大都以单机版的方式,或是Game Boy连线的方式对打,因此想开发PC版的游戏,玩家只要有一台PC并且安装软体就可以找到和另一个玩家对战,不用特地买一台游乐器.
Motivation(cont'd)
因为规则简单,而且本游戏不需要复杂的画面,所以适合作为期末专题.
Goal
Anytime, anywhere
Fault tolerance
Server crash
Client crash
Message lose
Special issues
利用Java的技术, 使用不同平台的玩家可以进行对战
可以记录每对玩家过去的战绩
Game's Rule
link
Game's Flow
Host(P2P)
Each host in the group has the same function.
Each host runs RMI server as a broker, however, there is only one active host one time.
Every player who intends to join the game, logins to the active RMI server to look for his opponent.
The player above sends its IP address to the RMI server.
Game's Flow (cont'd)
RMI Server's Action:
If there is no player in waiting queue, RMI server keeps the first player's IP address.
When the second player logins, it can require the IP address of the first player from RMI Server.
Game's Flow (cont'd)
Player's action:
As the player2 knows who its opponent is, it connects to player1's socket and start their game.
The third player logged in plays the role of player1, and so on.
Network Diagram
REQ
Be server
Player1 joins
Player2 joins
REQ
下一页