Building unity games for microsoft platforms

31
Building Unity Games For Microsoft Platforms Dave Voyles Tech Evangelist @DaveVoyles

description

High level overview of how to develop Unity games for Windows 8 and Windows Phone. Also provides step-by-step instructions, as well as tons of free resources

Transcript of Building unity games for microsoft platforms

Page 1: Building unity games for microsoft platforms

Building Unity Games For Microsoft PlatformsDave VoylesTech Evangelist@DaveVoyles

Page 2: Building unity games for microsoft platforms

Intro to Unity

Page 3: Building unity games for microsoft platforms

Two Microsoft Platforms• Windows 8 • Windows Phone 8

Page 4: Building unity games for microsoft platforms

Unity works everywhere

Page 5: Building unity games for microsoft platforms

New York http://aka.ms/BAMNewYork

Boston http://aka.ms/BAMBostonRochester http://aka.ms/

BAMRochesterAtlanta http://aka.ms/BAMAtlantaTampa http://aka.ms/BAMTampaFt. Lauderdale http://aka.ms/BAMFtLaudPhiladelphia http://aka.ms/BAMPhillyRaleigh http://aka.ms/BAMRaleighWashington DC http://aka.ms/BAMWashDC

Page 6: Building unity games for microsoft platforms

www.buildforwindows.com

Page 7: Building unity games for microsoft platforms

https://www.dvlup.com/

Page 8: Building unity games for microsoft platforms
Page 9: Building unity games for microsoft platforms

http://www.wpdevcenteroffers.com/

Page 10: Building unity games for microsoft platforms

BizSpark• Software • 3 years free software/Development Tools• Windows Azure Credits $200 first month/$150

thereafter

• Support• Professional technical and product support• Unique offers from Network Partners

• Visibility• Profile, Offers and Events • Connection to the ecosystem• Opportunities for showcase, visibility (events, social

media)Is your startup:• Developing Software?• Privately held?• Less than 5 years old?• Making less than US $1M in annual revenue?

http://bit.ly/1dSq8l7

Page 11: Building unity games for microsoft platforms

Intro to game development

Page 12: Building unity games for microsoft platforms

A basic game loop

•Start: This is where the program performs any initialization.

•Stop: Here, any open resources should be released before exiting.

•Update: All the game logic goes here, modifying the state of objects.

•Draw: This is where all the drawing goes.

Page 13: Building unity games for microsoft platforms

Build a portfolio

Page 14: Building unity games for microsoft platforms

Make a website

Tons of free options:• Wordpress• Blogger• Squarespace

Host your content here• Catalog of games• Links to your social

media• Blog about your work

Page 15: Building unity games for microsoft platforms

Think Small

Page 16: Building unity games for microsoft platforms

One Game a Month Club

Page 17: Building unity games for microsoft platforms

One Game a Month Club• http://www.onegameamonth.com/

• Excellent Example: Liza Shulyayeva (@Lazer)• Finished 12 games in 12 months!• http://liza.io/one-game-a-month-1gam-done/

Page 18: Building unity games for microsoft platforms

One Game a Month Club• Finish your project in 30 days or less• Stuck for more than a few days? Move on!

• Use forums as much as possible• Build on what you’ve finished last month

Page 19: Building unity games for microsoft platforms

Getting Started

Page 20: Building unity games for microsoft platforms

Requirements• Unity 4.2 or Later• Developer account to publish to the stores• Windows 8 / 8.1 (Free trial)

• Options for Mac users:• Virtual Box :

http://blogs.technet.com/b/chrisavis/archive/2013/01/27/installing-windows-8-into-oracle-virtualbox-running-on-mac-os-x.aspx

• Parallels : http://blogs.technet.com/b/haroldwong/archive/2013/02/05/configuring-a-mac-for-windows-8-and-windows-phone-development-with-parallels-8-installing-and-configuring-parallels.aspx

• Visual Studio• Visual Studio Express (free)• Win Phone 8 SDK

Page 21: Building unity games for microsoft platforms

The Basics1. Switch platform in Unity

2. Set player settings (images, icons, etc)

3. Build from Unity which creates a Visual Studio solution

4. Open solution in Visual Studio

5. Test the project and deploy to devices or local system (Note debug builds are slow, master builds are fastest more on this below)

6. Upload to the Windows Store and Windows Phone Store

Page 22: Building unity games for microsoft platforms

Switch Platforms• For a listing of pre-

compilation directives see here

• From Unity: File -> Build Settings

• Player settings allows you to adjust some platform specific items.

Page 23: Building unity games for microsoft platforms

Windows Store Logos and Splashscreen

Asset Filename Size in Pixels

Logo app-logo.png 150 x 150Small Logo app-smallogo.png 30 x 30 Store Logo app-storelogo.png 50 x 50

Splash Screen splashscreen.png 620 x 300

Before submitting to the store you need to provide a minimum of four graphics – three logos and a splash screen. These graphics have very specific size requirements (below) and should be .png or .jpg format. Use MS Paint or other free drawing tools to create these graphics.

Overwrite the existing file in the project directory (filenames below) with your custom graphics.

Page 24: Building unity games for microsoft platforms

Build and Test Your Game

You will have to change your properties to x86 if testing locally, if testing on a remote Windows RT device, use ARM

Page 25: Building unity games for microsoft platforms

Make sure you have a DevCenter subscription: http://msdn.microsoft.com/en-us/library/windows/apps/hh868184.aspx

Page 26: Building unity games for microsoft platforms
Page 27: Building unity games for microsoft platforms

Submit Your GameNote: If you do not have rating certifications and do not want to go through that process, for Age rating and rating certificates do the following:

12+ (or higher, note: Germany doesn’t allow 18+)

Do not deploy to these countries:KoreaSouth AfricaBrazilTaiwanRussia

Page 28: Building unity games for microsoft platforms

Resources

Page 29: Building unity games for microsoft platforms

ResourcesFree Image Editors:

• Photoshop CS2

• Paint.Net

• GrafX2 (pixel art)

Animation Tools:

• Spriter

• ShoeBox

Audio Tools:

• bfxr (create sound effects)

• Audacity (create and edit effects / music)

Page 30: Building unity games for microsoft platforms

ResourcesMusicIncompetech – Hundreds of high quality songs available for use in apps and games. FreePD – Another great resource for finding free music in the public domain. Sound Bible - Sounds clips SpritesHasGraphics Sprites – 10 sprite sets free for commercial use. Some require attribution, some do not.Video Game Sprites - Actual sprites from original games, not able to use in commercial gamesLost Garden – Game graphics, asks for acknowledgement.Open Game Art – Graphics, sprites, icons and sounds. Asks for donations. TexturesCGTextures – Amazing, pretty exhaustive collection of tillable textures.HasGraphics Textures – Two large tile sets free for commercial use.Max Textures - Tiled/seamless textures