开发者

In html5, if you create a game etc., are you exposing all your source code?

开发者 https://www.devze.com 2023-02-11 01:25 出处:网络
In html5开发者_运维百科, if you create a game etc., are you exposing all your source code?Yes, you are exposing all your source code.Not specifically.You are probably exposing all of your client code.

In html5开发者_运维百科, if you create a game etc., are you exposing all your source code?


Yes, you are exposing all your source code.


Not specifically. You are probably exposing all of your client code. If the application makes calls to the server (such as AJAX requests) you can hide all of the game logic and source code for calculations done by the server. So, for example, if you are planning on making a multi user game or a game that is controlled by a remote server, then you may or may not be exposing ALL of your source code.

Additionally, there are tools for obfuscating and shortening javascript which could help hide client logic from casual users.

0

精彩评论

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