Game Development Reference
In-Depth Information
Figure 6-3. Layout of Java Resources
Other utility classes include the following:
DialogTool : This class has utility methods to display messages back to the user,
launch a browser, and create dialogs.
LibraryLoader : This class is used to load the DSO from the main activity.
ScanCodes : This class maps android key codes to PC scan codes and ASCII codes.
WolfTools : This class has miscellaneous game information such as the name of the
DSO, game, and subroutines to install game files.
Creating the Main WolfLauncher Class
The main activity class fires when the user starts the game (see Listing 6-2). This activity is defined by
two resources: a layout XML file and the class itself ( WolfLauncher.java )
Search WWH ::




Custom Search