Advertisement
Guest User

Untitled

a guest
Mar 13th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. Windows Guide
  2. This guide will get you up and running with the Game Closure DevKit. First, you’ll download and install the DevKit, then get introduced to basil, our command-line tool for creating new projects and development. Once everything is installed and ready to go, please read the Hello, World! Guide to create your first application.
  3.  
  4. Prerequisites
  5.  
  6. The following is a list of prequisites for running the Game Closure DevKit on Windows. Download the following projects and refer to the sections below for configuration tips.
  7.  
  8. Web and Native Development
  9.  
  10. msysgit (> 1.7.10)
  11. The full installer should be used since it contains the git bash command prompt that is needed to run basil and the commands below. THe default options during the installation process will work with the GC Devkit.
  12. Node.js (> 0.8)
  13. npm
  14. Java JDK
  15. Chrome
  16. The Chrome web browser is the preferred development environment because of its superior debugging tools. This is the browser we use to develop the Game Closure DevKit and test against.
  17. Android Development
  18.  
  19. Android SDK
  20. The full adt bundle comes as a zip file rather than an installer and is not required. The download listed under use existing editor will also work, is smaller, and also provides an installer.
  21. Android NDK
  22. Apache Ant
  23. For more information, see the Android Setup Guide.
  24.  
  25. Installation Tip
  26.  
  27. The easiest way to install these packages is through their respective installers. Note the location that each of the above dependencies is installed to because they will need to be added to your Windows environment PATH. For some of the above dependencies they come as zip downloads rather than installers. In these cases, they need to be unzipped and the location of the unzipped files needs to be added to your PATH. [This is true for the Android NDK, ant build tools, and the Android SDK when using the adt bundle]
  28.  
  29. Add the tools to your PATH
  30.  
  31. Once the above dependencies are downloaded and installed, it is important that the following directories are listed in your PATH environment variable. Note that the location of these directies depends on where you installed the dependencies.
  32.  
  33. Web and Native Development
  34.  
  35. {npm install location}
  36. {java install location}\jdk1.7.0_13\bin
  37. Android Development
  38.  
  39. {android-ndk install location}\android-ndk-r9\prebuilt\windows\bin
  40. {android-ndk install location}\android-ndk-r9
  41. {ant install location}\apache-ant-1.8.4\bin
  42. {android-sdk install location}\android-sdk\tools
  43. {android-sdk install location}\android-sdk\platform-tools
  44. Depending on your version of Windows, the full path to the NDK bin directory may look like this instead:
  45.  
  46. {android-ndk install location}\android-ndk-r9\prebuilt\windows-x86_64\bin
  47. If you need assistance configuring the path refer to this document which describes how to configure the java environment variables.
  48.  
  49. For example, your path may contain the following after adding everything. Note that some of the paths below are added automatically by installers and Windows. Also be aware that these paths will be different based on the location where you installed the dependencies.
  50.  
  51. C:\android-ndk-r9\prebuilt\windows\bin;
  52. C:\android-ndk-r9;
  53. C:\Program Files\Java\jdk1.7.0_13\bin;
  54. C:\apache-ant-1.8.4\bin;
  55. C:\Users\gc\AppData\Local\Android\android-sdk\tools;
  56. C:\Users\gc\AppData\Local\Android\android-sdk\platform-tools;
  57. C:\Users\gc\AppData\Roaming\npm\;
  58. %SystemRoot%\system32;%SystemRoot%;
  59. %SystemRoot%\System32\Wbem;
  60. %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
  61. C:\Program Files\nodejs\
  62. JAVA HOME
  63.  
  64. Your JAVA_HOME environment variable should also be set to the location of your java directory. For example: C:\Program Files\Java\jdk1.7.0_13
  65.  
  66. For more information on managing environment variables in Windows, see Microsoft’s official docs.
  67.  
  68. Install the DevKit
  69.  
  70. With the prerequisites installed, we’re ready to set up the Game Closure DevKit. The library and tools are open source and hosted in our GitHub repository. We’ll be using the git tool to keep our software updated, and there is lots of help available for how to use it.
  71.  
  72. To download the Game Closure DevKit, open a git bash terminal, and issue the following commands:
  73.  
  74. $ git clone git@github.com:gameclosure/devkit.git
  75. $ cd devkit
  76. This downloads the DevKit in to the ./devkit directory located in your current working path. Switch to that directory and run the install script:
  77.  
  78. $ ./install.sh
  79. This installs the command-line program basil which is used create and serve projects. To see a list of basil commands, simply run it in your terminal without any arguments:
  80.  
  81. $ basil
  82. This prints out a list of basil commands. You can get help for a particular command by typing basil help [command], for example:
  83.  
  84. $ basil help init
  85. Some commands also take a -h argument to show help.
  86.  
  87. Update the DevKit
  88.  
  89. To keep your copy of the DevKit up to date, run the update command:
  90.  
  91. $ basil update
  92. The update command is also able to check out older versions of the DevKit or different channels of DevKit versions. Read the help menu with basil update --help for more information on this flexible tool.
  93.  
  94. Play With Examples
  95.  
  96. Once basil is installed you’re ready to check out a few example projects. First, take a look at the Hello, World! Guide to see how to create a new project. After that, you should be ready to browse some more complicated projects. There are a bunch contained within the examples addon, which comes with a fresh DevKit install.
  97.  
  98. This addon installs a collection of projects that demonstrate some game development techniques using the Game Closure DevKit. When you run basil you’ll be able to browse and run the projects, and also see the annotated source for each.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement