Developing games for Windows Phone7 using XNA
Post on 14-Jan-2015
1595 Views
Preview:
DESCRIPTION
Transcript
Developing games for Windows Phone7 using XNA
By Johnson Ma
Windows Phone 7 Platform
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
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
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)
XNA OverviewAudio Content Graphic Input/Touc
h
Media Network Storage
Game Logic
GamerService
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
XNA Game Dev(1) --Game DesignMain Menu What can player see?What can they choose?What happens next?
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
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
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
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
XNA and Azure Cloud
Windows Azure storage servicesAuthentication and authorizationPush notification
Summary of XNA BenefitsCreating high performance game in less
timeCross platform game logicRendering and effectsGPU for performanceSupport multiplayer gamesGame social network --- Xbox live!
Thank you
top related