Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Deployment Concerns

I hear a lot of people worry, often prematurely, about cheaters and people stealing the code for their games. I feel that the primary concern for your game is developing something that people want to play and that going too far down the rabbit hole of code obfuscation to keep people from stealing your code can lead you in to a false sense of security. A lot of talented developers are out there, and given enough time and interest, they can figure out what you are doing with your code.

However, there are some advantages to using a few techniques to obfuscate your code in production. When you minify you code, you create a file that is not human friendly, but the browser can still handle readily. At a basic level, minifying tools strip out unneeded whitespace that is typically in place to make the code easy for developers to work with. Removing the whitespace can provide a huge reduction in the bandwidth required to get your code to the browser, making your application load faster and saving money on your bandwidth. The magnification libraries also generally include advanced features that help removed unused code, rename variables (to be shorter), and even rewrite certain functions to be more efficient. These advanced feat....


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial