开发者

Comet/JS/PHP/HTML5 versus Flash in secure Multiplayer Gamedevelopment

I would like to create a multiplayer online game (tic-tac-toe/chess) and i am not sure which language to use.

I am familiar with JS/PHP and heard about comet

Does comet stand a chance against 开发者_JS百科Flash, if yes whats the limitations except the lack of smooth animations like flash allows?

What are the differences regarding resources and memory needed?

SECURITY: Is it possible to create Flash-games without any chance to modify (flash-)cookies etc... for cheating?

i know lot of questions, i do hope for your recommendations into the reight direction.

Thanks 4 your time


It's worth watching Multiplayer Gaming with HTML5: Are We Ready? by Rob Hawkes of Mozilla. He covers HTML5 gaming technologies and discusses the security concerns with using JavaScript and the current solutions to these problems.

It's easier to hack JavaScript than it is Flash. But both are hackable if the user tries hard enough. The solution for the moment is don't let users do things on the client that can influence the game too much. The server still needs to ultimately be in control and validate any move. Rob discusses this in the video.

I would go with WebSockets rather than Comet as they offer lower latency and faster communication. They are also the first true standard we've got for realtime communication on the Web. Very exciting!

You can use Flash as your front-end technology with Comet or WebSockets. Pusher, who I work for, has an ActionScript library which means you can use our realtime WebSockets platform to build you game. Other technologies will also offer similar libraries in different languages.

For something as simple as tic-tac-toe I'm absolutely positive there will be no memory or resource problems to consider.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜