8000 Home · Semora/JGFramework Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Semora edited this page Dec 9, 2014 · 13 revisions

what is JGFramework?

JGFramework is a java framework for turn base games that developed for Java Challenge 2015. It provides many features that you need for a simple multi player game. In this architecture has 3 parts :

Server

The game run in server. As mentioned, this frame work support turn base games. It means that time is discontinuous. The game trend will determined by Events. In each turn, objects give some event to server; Server will assign this events to simulator. Then simulator check present state and all events and calculate next state. Server will send changes to clients and clients will send its events to server again. This flow will continue until the end of the game. Also server send changes of game state to UI at the end of each turn.

Client

Each player of your game is a client. In the beginning of each turn, server send information of the past turn and client can determine what want to do and send several events to server according to its demand.

UI

UI will show the game to who want to see it. send the information of each turn by tcp connection to UI. In this project we don't implement UI. However we have a node.js server and will share it.

you can see more detail in Architecture.

Clone this wiki locally
0