在Javascript中制作黑客证明游戏 [英] Making a hack proof game in Javascript

查看:113
本文介绍了在Javascript中制作黑客证明游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您使用HTML5 / JavaScript创建了在线游戏。所有代码都会下载到用户的浏览器中,然后他们就可以运行游戏。

Suppose you created an online game in HTML5/JavaScript. All the code would be downloaded into the user's browser, and they would run the game.

如何阻止某人将游戏复制到他们的计算机上,并注入功能和作弊的模块?例如,他们可以编写一个自动瞄准最近的敌人精灵的函数。

How do you stop someone from copying the game onto their computer, and injecting functions and modules to cheat? For example, they could write a function that auto-aims at the nearest enemy sprite for example.

通过以某种方式设计游戏代码,是否存在保护人们不做这类事情的基本方法?

Is there any fundamental way to protect people from doing this sort of thing by designing your game code in a certain way?

推荐答案


什么阻止某人将
游戏复制到他们的计算机上,
注入函数和模块到
作弊?

What is stopping someone from copying the game onto their computer, and injecting functions and modules to cheat?

没什么。


通过以
的某种方式设计你的游戏代码,是否有任何基本的方式来
保护人们不要做这种
的事情?

Is there any fundamental way to protect people from doing this sort of thing by designing your game code in a certain way?

不。

这篇关于在Javascript中制作黑客证明游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆