Skip to content

Latest commit

 

History

History
161 lines (116 loc) · 6.93 KB

make_a_game_in_20_minutes.md

File metadata and controls

161 lines (116 loc) · 6.93 KB

MAKE A GAME IN 20 MINUTES

Things You’ll Need Before You Start:

  • OUYA Console
  • Windows 7 PC
  • Micro USB Cable
  • TV with HDMI input
  • Internet connection

Watch the video to follow along: https://vimeo.com/102651617

#####Please Note: If you are running Windows 32bit, there will not be a Program Files (x86) folder available. Browse to the Program Files folder instead. Program Files (x86) is only available when running a Windows 64bit system.

Getting Set Up

Install JDK

  1. Go to: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
  2. Download JDK 6 (32bit / x86) [requires an Oracle account]
  3. Install the JDK and JRE using the downloaded installer, following the onscreen prompts and keep the default settings.

Install Android SDK

  1. Download the standalone SDK (not ADT/Studio bundle) from: http://developer.android.com/sdk/index.html
  2. Run the SDK tools installer, noting the location of the SDK folder, keep the default settings again

Set up Android SDK

  1. Open the Android SDK Manager
  2. Click “Deselect All” if you don’t want to download unnecessary tools (?)
  3. Check and install:
  4. The latest Build-tools (highest revision number)
  5. Android 4.1.2 API 16 SDK Platform
  6. Extras > Google USB Driver
  7. Accept any terms and conditions
  8. Close both windows when complete

Setup OUYA adb

  1. Open Device Manager (Start Menu - type Device Manager)
  2. Connect your OUYA console to your PC via the MICRO USB port (not the regular USB), also connect your console to your TV. Then power on the console.
  3. Under OTHER DEVICES, OUYA will pop up
  4. Right click OUYA > Update Driver Software…
  5. Click the Browse My Computer option
  6. Click the “let me pick” option
  7. Select “Show All Devices” and click Next
  8. Click the “Have Disk…” button
  9. Browse to the folder where you installed the Android SDK and select: (sdk)/extras/google/usb_driver/android_winusb.inf Please Note: If you are running Windows 32bit, there will not be a Program Files (x86) folder available. Browse to the Program Files folder instead. Program Files (x86) is only available when running a Windows 64bit system.
  10. Choose OK
  11. Select the “Android Composite ADB Interface” model from the list and click Next
  12. If there’s a warning about compatibility, just click Yes
  13. Close the windows when finished

Download the Demo Game package

  1. Download the latest release unitypackage from here: https://github.com/ouya/unity-2d-demo/releases/latest

Install Unity

  1. Download and install Unity following the installation prompts: http://unity3d.com/unity/download

Getting The Demo Running

  1. Create a new Unity Project
  2. In the new project dialog, select your project folder and select “2D” in the defaults drop down
  3. Once in the editor go to Assets > Import Package > Custom Package…
  4. Navigate to your downloads folder and find the Demo package from github
  5. Import the demo package, and when a window pops up, leave all assets selected
  6. Once imported, go to File > Build Settings
  7. Select Android and hit Switch Platform
  8. Finally Click Build and Run to save and launch the apk
  9. If prompted, browse to the Android SDK folder
  10. Your game should automatically begin to play on your OUYA console that’s still plugged in to your TV

Making Tweaks in Unity

  1. In the project tree (one of the several panes labeled with a tab), open Scenes > Level

Changing Jump Height

  1. In the project tree, select “Assets > Prefabs > Characters > hero”
  2. In the Inspector, find the PLAYER CONTROL (SCRIPT) section, and change the Jump Force field from 1000 to 1200

Changing Enemy HP:

  1. In project tree, select “Assets > Prefabs > Characters > enemy2”
  2. In the Inspector, find the ENEMY (SCRIPT) section and change the HP field from 2 to 3

Changing Enemy Speed:

  1. In project tree, select “Assets > Prefabs > Characters > enemy1”
  2. In the Inspector, find the ENEMY (SCRIPT) section and change the Move Speed field from 6 to 8

Changing Bus Sprite

  1. In project tree, select “Assets > Prefabs > Environment > Bus”
  2. In the Inspector, find the SPRITE RENDERER section, and click the circle next to the Sprite field where it says “Bus”
  3. Double click the new Bus sprite (with alien passengers) in the window that pops up

Changing Background Image

  1. In Hierarchy tab, select “backgrounds > env_bg”
  2. In the Inspector, find the SPRITE RENDERER section, and click the circle next to the Sprite field labeled env_bg
  3. Double click the night time background in the window that pops up

Changing Music

  1. In the Hierarchy tab, select “music”
  2. In the Inspector, find the AUDIO SOURCE section and click the circle next to the Audio Clip field labeled MainTheme
  3. Select the new music from the dialog
  4. Finally, go File > Build and Run to launch your modified game.
  5. The game will automatically begin to play on your OUYA console that should still be running the first version of the game.
  6. Check out the differences!

Creating APK for publishing

  1. Create your keystore
  2. Go to Edit > Project Settings > Player
  3. In the Android tab, expand the “Publishing Settings” section
  4. Check the box for Create New Keystore
  5. Click “Browse Keystore” to select the location of your keystore (DO NOT LOSE THIS FILE OR PASSWORD)
  6. Choose a password and type it into the Keystore password and Confirm password text boxes
  7. In the Key > Alias dropdown box, select Create a new key
  8. In the new key dialog, fill out all of the fields with your information. You may choose a new password or use the same one as the keystore file.
  9. Select CREATE KEY when you’re done.
  10. Return to the PUBLISH SETTINGS section, and select your newly created alias from the Key -> Alias dropdown box, and type in the password you’ve chosen.

Changing the package name

  1. Open the OUYA panel by going to Window > Open OUYA Panel
  2. Change the bundle ID by selecting the Bundle Identifier text and entering your package name
  3. A warning message will appear.
  4. To fix this, hit the “Sync Bundle ID” button to update the package name of all your files

Build APK

  1. Open File > Build Settings
  2. Click the Build button to save your APK

Create a Developer Profile and Upload your game

  1. Go to https://devs.ouya.tv and create or log in to your developer account
  2. Go to https://devs.ouya.tv/developers/edit and fill out your Developer Profile, and Marketplace Agreement
  3. If you don’t have a product, you don’t need to fill out the Payment Info or Tax Documents
  4. Go to Games -> Add Game
  5. Fill in the pertinent info about your game:
  6. Title
  7. Description
  8. Support Email
  9. apk file
  10. Screenshots
  11. etc
  12. Save your game info
  13. The game will continue to upload to the server, with a message saying “Still Verifying APK…”
  14. When that is complete, a Submit For Review button will appear and you’ll be good to go.