Book Image

Mastering LibGDX Game Development

By : Patrick Hoey
Book Image

Mastering LibGDX Game Development

By: Patrick Hoey

Overview of this book

Table of Contents (18 chapters)
Mastering LibGDX Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Obfuscating the packaged JAR


Another consideration is the security of your game executable to prevent people, or at the least, make the process more difficult for the player to exploit your game code. A common technique used in the industry is to rename class member variables and class names, or obfuscate the compiled bytecode of the distribution JARs. There is a tool I have used in the past for obfuscating Android-based games, but can also be applied to the desktop version of your game. Proguard (v5.2.1) still seems to be the golden standard because it is configurable, relatively effective, and open source. The main website for Proguard is http://proguard.sourceforge.net/.

The following steps demonstrate how to use Proguard:

  1. Navigate to where the current build distribution JAR, BludBourne.jar, is located.

  2. Rename this JAR to BludBourne_ORIG.jar.

  3. Download the latest Proguard zip file from http://sourceforge.net/projects/proguard/files and unzip the archive.

  4. Navigate into the unzipped archive to...