Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 514
Blankman Avatar asked Feb 16 '11 14:02

Blankman


People also ask

Can you code a game in HTML5?

Since most game developers want to focus on their actual game and not in creating this whole abstraction layer, it is recommended you use a HTML5 game frameworks. HTML5 game frameworks and libraries that contain building components you can use to create your own games.

How does a HTML5 game work?

HTML5 Game Development Uses WebGL & Canvas: Such images can be directly added to the library, ready for use. WebGL or Web Graphics Library makes the game developers independent of plugins. It uses WebGL, and developers can easily implement both 2D and 3D content in web browsers.

Are HTML5 games safe?

Do HTML5 apps pose any security threats for developers and businesses? The answer unfortunately is yes. Apps built with HTML5 are like any web-based applications. Developers should take proper security measures against cyber attacks to safeguard any stored data and communications.

What is HTML5 game development?

HTML5 : An Overview HTML5 uses JavaScript language in which the games are programmed. HTML5 game development helps in delivering APIs for new solutions such as WebGL, Canvas, WebAudio Which are regarded as vital components. These components also facilitate in smooth functioning of games.


2 Answers

Yes, you are exposing all your source code.

like image 187
LukeH Avatar answered Sep 22 '22 15:09

LukeH


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.

like image 6
wllmsaccnt Avatar answered Sep 21 '22 15:09

wllmsaccnt