How to make an online games?


Online gaming is one of the most difficult type of game developed, because it requires a lot of technical knowledge ranging from networking (sending data), set up the server, security (that are not easily cheated), and others. But the online game itself there are different types with different difficulty levels also vary:

Text Based Online GameText-based online games, such as Mafia Wars or Travian. The simplest online games, simply display data from the server, does not need too much interaction between players in realtime. For example player A player who is attacking C will not appear on the screen while the game player B are on the same in-game

Asynchronous Online GamesGame where we can play with the character of our friend, but is concerned not need to be online, for example, Buddy Rush. We simply use the latest data from the character of our friends, and moving it to the AI ​​so impressed that we play with our friends. More complex due to interactions with the system have realtime player (such as we are at a monster, the data on the server should be updated with a new monster that lives have been reduced). But each game only accepts input from one player only.

Real Time Online GamesOnline game where we can play with others at the same time. eg Point Blank or DOTA (via Battlenet). This type of game even greater degree of difficulty because each input of each player must affect the data on the server and on-screen games each player. For example in the session 10 people DotA, players # 1 issue moves to the player # 2, on-screen game players # 1 - # 10 must see the same event, at the same time, and with the same effect (eg the amount of HP that player # 2 reduced).

Massively Multiplayer Online GameGaming online real time by the number of players far more than any previous game, for example, Ragnarok Online or World of Warcraft. At one time, online players can penetrate hundreds or even thousands of digits, so the number of data transactions that occur very much, so the server must be made to handle that much data transactions.

Of all types of online games mentioned above, the key is to learn how the client-server relationship in a game. Simply put, the server is a place for storing various game data, and the client is an application to display data on a server with the appearance of the game. All inputs on the client must be received by the server and the server must be able to respond in accordance with the input that is sent.If you really want to try to make online gaming, there's no harm in trying to make a simple online games like Travian or Mafia Wars, using PHP, a database (eg mySQL), and HTML / CSS to display a visual game. The plan in November Agate will make a tutorial related to the type of game like that at Agate Studio Blog:) Just wait for the date