FUNDAMENTALS OF GAME DESIGN, SECOND EDITION

USE A SECURE TELECOMMUNICATIONS PROTOCOL

It takes an extremely dedicated hacker to tamper with the data stream between the client software and the server, but it takes only one. If the stakes are high enough, someone will decide the reward is worth the time spent. To foil hackers, your soft­ware must use a secure telecommunications protocol. Designing such a thing is a programming problem and is beyond the scope of this book, but if you're designing an online game, you should be sure that the telecommunications protocol you use provides the following features.

■ First, all data should be encrypted to prevent users from understanding it out­right. Each packet of data should be sent with suitable error-checking and error - correcting facilities, which will enable the software to detect whether the data has lost integrity in transmission. Even though Internet communications are far more reliable than the old modem-based systems were, it's always a good idea to verify that the arriving data is correct.

■ Second, you might want to consider a heartbeat mechanism. In this system, your client software sends a short packet to your server at regular intervals, even when the client doesn't need to transmit data, simply to tell the server that the client is still present. This enables you to detect disconnections. If the nature of the game allows the client to remain silent indefinitely, the server doesn't know if the client has disconnected or if the player is just thinking.

■ Each packet should include a unique serial number, to indicate the correct order of packets and to prevent spurious packets from being inserted by unauthor­ized means.

Добавить комментарий

FUNDAMENTALS OF GAME DESIGN, SECOND EDITION

Arcade Mode Versus Simulation Mode

Switching into arcade mode skews the play toward lots of action and relatively few slow-paced game states, such as strikeouts or walks. Arcade mode makes the game more exciting at …

THE SECRET OF MONKEY ISLAND

The Secret of Monkey Island, now nearly 20 years old, remains worth studying because it spawned a highly successful franchise. Although it is ostensibly set on a Caribbean island in …

Human Intelligence Instead of Artificial Intelligence

In single-player games, the player competes against the computer, so the computer has to have enough artificial intelligence (AI) to be a good opponent; building the AI for a complex …

Как с нами связаться:

Украина:
г.Александрия
тел./факс +38 05235  77193 Бухгалтерия

+38 050 457 13 30 — Рашид - продажи новинок
e-mail: msd@msd.com.ua
Схема проезда к производственному офису:
Схема проезда к МСД

Партнеры МСД

Контакты для заказов оборудования:

Внимание! На этом сайте большинство материалов - техническая литература в помощь предпринимателю. Так же большинство производственного оборудования сегодня не актуально. Уточнить можно по почте: Эл. почта: msd@msd.com.ua

+38 050 512 1194 Александр
- телефон для консультаций и заказов спец.оборудования, дробилок, уловителей, дражираторов, гереторных насосов и инженерных решений.