Saturday, 9 May 2015

Converting game to android





Task 1)


The phone that I will choose to convert my card game too an android phone know as Samsung Galaxy Note 4.


The specification of the phone:


OS


  • Android 4.4(KitKat)


Connectivity


  • Wi-Fi 802.11 a/b/g/n/ac (2x2 MIMO)
  • Download Booster, NFC, Bluetooth ® 4.1 (BLE),ANT+, USB2.0, MHL 3.0
  • IR LED (Remote Control)


Battery


  • 3220mAh Fast Charging


Audio


  • Codec:MP3, AAC/ACC+/eAAC +, WMA,AMR-NB/WB, Vorbis, FLAC
  • Adapt Sound, Sound Alive, Wise Voice 2.0, Extra Volume 2.0
  • 3 Mics (Directional Voice Recording)


S Pen


  • 15g, Hovering 15mm, pressure level 2,048


Sensor


  • Gesture, Accelerometer, Geo-magnetic, Gyroscope, RGB ambient light, Proximity, Barometer, Hall Sensor, Finger Scanner, UV, HRM


Dimensions


  • 153.5 X 78.6 X 8.5 MM/176g


Display


  • 5.7” Quad HD Super AMOLED (2560 x 1440)


AP


  • 2.7GHz Quad Core Process
  • 1.9GHz Octa Core (1.9GHz Quad + 1.3GHz Quad Core) Process


Memory


  • 3GB RAM + 32GB Internal memory
  • Supports microSD p to 128GB


Network


  • 2.5G (GSM/GPRS/EDGE): 850/900/1800/1900 MHz
  • 3G (HSPA + 42Mbps): 850/900/1900/2100 MHz
  • 4G (LTE Cat.4 150/50Mbps) or 4G (LTE Cat.6 300/50Mbps)


Camera


  • Front Camera 3.7MP + F1.9/Selfie(90), Wide Selfie mode (120)
  • Rear Camera 16M + Smart OIS/Fast AF, Live HDR(Rich Tone)


How to start the convert – getting started


To start working with my android device and Game Maker studio Pro game I will need to download and install the Android SDK. I could use this link to download SDK:   




 


However Android SDK needs you to use the X86 (32bit) JDK regardless if your copy of Windows is 64bit, so I must ensure I get:


Windows x86
127.8 MB  


 


Installing the Android SDK


1.     Run the Android SDK installer. You will be asked to install the Android SDK to the path "C:\Program Files (x86)\Android\android-SDK". We strongly recommend that you choose something with no spaces in the path, such as C:\android-sdk\, as the default path can cause problems with the actual Android updater program itself.
2.     Once you have successfully installed the Android SDK you will be given the option to start the Android SDK Manager. This you must do, as it will install additional tools and device specific functions. When it starts you should select only Android SDK Platform ToolsAndroid 2.1 (API 7)Android 2.2 (API 8)Android 3.2 (API 13), Android 4.0.3 (API 15), as well as the most recent version of Android (selected automatically by default by the manager). Please don't just select everything to be installed, as this will a) needlessly waste your bandwidth and HDD space, and b) might cause conflict errors during builds.
3.     It should be noted that after installing these files the Android Download Manager may inform you that there are other files to be installed and that you should close and prelaunch the SDK Manager, so please do this if asked.
4.     It is advised to check the revision details and see if you don't already have the selected update installed. For more information on this process and the Download Manager 
5.     You should also set the PATH variable to allow you to run the command line tools.
 
 
 
After doing these steps your Android SDK Manager should look something like this on your computer screen:
 
 
 


Installing Android NDK


You should proceed to download the Android NDK as well because you will need it to work. Note that with recent releases of Studio we support 10b only, as platform submission requirements dictate the version to be used. Forthcoming releases starting with the March/April EA release will support 10d and future versions. Version 10b, however, shipped with 32bit and 64bit "platform target" versions, so it's important that you install the correct package. Please note that it is the 32bit target version of the NDK you need - if you get the 64bit target version you won't have the correct files required and you will receive compiler errors that files cannot be found. The direct links to the correct versions are:






 


 


 


Game Maker: Studio Basic Setup


Once i have installed the Android tools, correctly and are ready to proceed, you have to then install Game Maker Studio. Once you have done the following you must then do these steps to succeed:


  1. Launch Gamer Maker Studio
  2. Enter your license key
  3. Create a new project
  4. Select File>Preferences>Web Server
  5. Web Server Port: This is set to 51268 to 51280 by default so you can changed it freely if you want too.
  6. IP Allowed List: Enter your local IP address range in the format xxx.xxx.xxx.0/24 as seen in this example given: 192.168.1.0/24


If you are not sure and are struggling to remember your local IP address, you can easily find the instructions here. You will need to use a direct USB connection from your PC to your phone/android.


Enable USB Debugging


  1. On the android device that you have, browse to Settings>Applications>Development and enable USB Debugging.


Connecting Your Device


  1. Connect your android device to your PC via the data cable
  2. The device drivers should be installed automatically at this stage (if they aren’t already), but if they are not, then refer back to your device’s manufacturer’s support information so you can locate and install the correct ADB drivers. It is very important you get ADB drivers, not the standard consumer ones.
  3. Now test your phone driver to confirm if it’s correct. Please follow the following:


  • If you have already set up the PATH variable as mentioned above, simply Windows Key and R to open up a new Run window and type cmd and hit enter, then type – adb devices.
  • Go to your Android install folder and then the “platform-tools” folder inside it (e.g., C:/android-sdk/platform-tools) and then hold down the shift key and then right-click in some empty space and choose “Open a command window here”. In the new command window, type “adb devices” (without the quotes).


 


 


 


 


 


 


Preparing Game Maker Studio


In Game Maker Studio set up the preferences File>Preferences>Android. Please ensure that you have followed the “Device Setup for Android” (above).


AndroidPreferences.png


If you have done all of the following steps correctly then the first three sections should have filled in automatically (if not then refer to the section on troubleshooting). This should then only leave you to Create the Private Key store form the key store Tab.


Android_Prefs.png


 


 


 


 


 


 


 


 


 


 


 


 


Important!!! The key store is a file that will be used to “sign” all of the (users) android apps so I (the owner) has to fill in all of the details correctly otherwise it will not work and then back this file up!


  1. Name – this is the file name of the key store (please note that this does not mean your company name or your actual name).
  2. Password – Your security password for the key store file which must be at least sic characters long.
  3.  Alias – This is the name of the “user” for this key store and can differ from the name field above.
  4.  Password – The same password as written in the password field two above. This is a long-time Android SDK bug.


The following instructions have no relation inside Game Maker Studio and is optional but you want to fill them in…


  1. Common Name - this would normally be your name
  2. Organizational Unit - the department within the company that you are in
  3. Organization - the name of your company
  4. Location - the name of the town or city where you are based
  5. Country - the two letter code for the country where you are based


Remember! Back up your files to be extra safe

No comments:

Post a Comment