Developing games for Windows Phone7 using XNA

15
Developing games for Windows Phone7 using XNA By Johnson Ma

description

introduction on how to develop games for Windows Phone7 using XNA

Transcript of Developing games for Windows Phone7 using XNA

Page 1: Developing games for Windows Phone7 using XNA

Developing games for Windows Phone7 using XNA

By Johnson Ma

Page 2: Developing games for Windows Phone7 using XNA

Windows Phone 7 Platform

Page 3: Developing games for Windows Phone7 using XNA

Windows Phone 7 as a Gaming Platform

Windows Phone 7 as a game platform

Attract game companies and developers

Most applications are games!

Apps stat in Marketplace

Page 4: Developing games for Windows Phone7 using XNA

Use XNA or Silverlight?Use XNA if you want to:

Shorten development timeCreate high performance 3D game Also support Xbox 360More bitmap based motion and particle effects

Vs

Page 5: Developing games for Windows Phone7 using XNA

What is XNAXNA is a cross platform game development and management

framework based on Microsoft .Net runtime

XNA runtime is available for Windows, Windows Phone7 and Xbox360

Open source runtimes are available for Linux, Android and Mac/IPhone (Mono, MonoTouch by Novell)

XNA framework encapsulates low-level technological details in coding a game, allows developers to focus more on the content and gaming experience.

The first version released in 2004, latest version is 4.0 (Sep 2010)

Page 7: Developing games for Windows Phone7 using XNA

XNA Game Dev (0) -- EnvironmentDownload and install

Windows Phone Developer Tools (Free!). Visual Studio 2010 Express for Windows PhoneWindows Phone EmulatorSilverlight for Windows PhoneXNA Game Studio 4.0Expression Blend 4 for Windows Phone

Page 8: Developing games for Windows Phone7 using XNA

XNA Game Dev(1) --Game DesignMain Menu What can player see?What can they choose?What happens next?

Page 9: Developing games for Windows Phone7 using XNA

XNA Game Dev(2) --Game Flow

Initialize

• Initialize game objects

• load required services

• non-graphic content

Load Content

• Load the graphic content in pipe

Update

• Called automatically

• Update world

• Process input

• Collision checking

Draw

• Draw every component

Game Loop

Page 10: Developing games for Windows Phone7 using XNA

XNA Game Dev(3) --Responding to User InputAPIs to supports Keyboard, Mouse, Gamepad

(Xbox 360), TouchPad(Phone)Multitouch on Windows Phone7Soft keyboard for Windows Phone

Microphone to capture audio to be used in your game

Page 11: Developing games for Windows Phone7 using XNA

XNA Game Dev(4) --Display GraphicRendering 2D with Sprites and Text

SpriteBatch: batch operation to draw 2D bitmaps directly to the screen

Sprite Scaling: hardware acceleratedSprite Font: draw text on screen with pos, color,Rotation, origin and scaling

Rendering 3D with EffectsPipeline to load resourceWorld, view and projection transforms 3D scene to 2D

spaceBuilt-in basic effects: transparency, texture, lighting, fog,

specula, diffuse

Page 12: Developing games for Windows Phone7 using XNA

XNA Game Dev(5) --Advanced TopicsPlay Sounds:

3D audio, Built-in sound effects, audio buffersPlay Videos:

Supports HD video (720p)Supports play video on a Surface

Xbox Live for online gameGame service to support Xbox live accountDisplay and animating gamer avatar

Page 13: Developing games for Windows Phone7 using XNA

XNA and Azure Cloud

Windows Azure storage servicesAuthentication and authorizationPush notification

Page 14: Developing games for Windows Phone7 using XNA

Summary of XNA BenefitsCreating high performance game in less

timeCross platform game logicRendering and effectsGPU for performanceSupport multiplayer gamesGame social network --- Xbox live!

Page 15: Developing games for Windows Phone7 using XNA

Thank you