Introduction XNA game WindowsPhone7
Transcript of Introduction XNA game WindowsPhone7
-
7/31/2019 Introduction XNA game WindowsPhone7
1/15
By Johnson Ma
-
7/31/2019 Introduction XNA game WindowsPhone7
2/15
Windows Phone 7 Platform
-
7/31/2019 Introduction XNA game WindowsPhone7
3/15
Windows Phone 7 as a Gaming
Platform
Windows Phone 7 as a gameplatform Attract game companies and
developers Most applications are games!
Apps stat in Marketplace
-
7/31/2019 Introduction XNA game WindowsPhone7
4/15
Use XNA or Silverlight? Use XNA if you want to:
Shorten development time
Create high performance 3D game Also support Xbox 360
More bitmap based motion and particle effects
Vs
-
7/31/2019 Introduction XNA game WindowsPhone7
5/15
What is XNA XNA is a cross platform game development and management
framework based on Microsoft .Net runtime
XNA runtime is available for Windows, Windows Phone7 andXbox360
Open source runtimes are available for Linux, Android andMac/IPhone (Mono, MonoTouch by Novell)
XNA framework encapsulates low-level technological details incoding a game, allows developers to focus more on the contentand gaming experience.
The first version released in 2004, latest version is 4.0 (Sep 2010)
http://www.mono-project.com/http://monotouch.net/http://www.mono-project.com/http://monotouch.net/http://monotouch.net/http://www.mono-project.com/ -
7/31/2019 Introduction XNA game WindowsPhone7
6/15
XNA OverviewAudio Content Graphic Input/Touch
Media Network Storage
Game Logic
Gamer
Service
http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.audio.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.content.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.net.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.storage.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.gamerservices.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.storage.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.net.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.media.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.content.aspxhttp://msdn.microsoft.com/en-us/library/microsoft.xna.framework.audio.aspx -
7/31/2019 Introduction XNA game WindowsPhone7
7/15
XNA Game Dev (0)
-- Environment Download and installWindows Phone Developer
Tools (Free!).
Visual Studio 2010 Express for Windows Phone
Windows Phone Emulator
Silverlight for Windows Phone
XNA Game Studio 4.0
Expression Blend 4 for Windows Phone
http://www.microsoft.com/express/Phone/http://www.microsoft.com/express/Phone/http://www.microsoft.com/express/Phone/http://www.microsoft.com/express/Phone/http://www.microsoft.com/express/Phone/ -
7/31/2019 Introduction XNA game WindowsPhone7
8/15
XNA Game Dev(1)
--Game Design Main Menu
What can player see?
What can they choose?What happens next?
-
7/31/2019 Introduction XNA game WindowsPhone7
9/15
XNA Game Dev(2)
--Game Flow
Initialize
Initializegame objects
load requiredservices
non-graphic
content
Load Content
Load thegraphiccontent inpipe
Update
Calledautomatically
Update world
Process input
Collision
checking
Draw
Draw everycomponent
Game Loop
-
7/31/2019 Introduction XNA game WindowsPhone7
10/15
XNA Game Dev(3)
--Responding to User InputAPIs to supports Keyboard, Mouse, Gamepad (Xbox
360), TouchPad(Phone)
Multitouch on Windows Phone7 Soft keyboard for Windows Phone
Microphone to capture audio to be used in your game
-
7/31/2019 Introduction XNA game WindowsPhone7
11/15
XNA Game Dev(4)
--Display Graphic Rendering 2D with Sprites and Text
SpriteBatch: batch operation to draw 2D bitmaps directly tothe screen
Sprite Scaling: hardware accelerated Sprite Font: draw text on screen with pos, color,Rotation, origin and scaling
Rendering 3D with Effects
Pipeline to load resource World, view and projection transforms 3D scene to 2D space Built-in basic effects: transparency, texture, lighting, fog,
specula, diffuse
-
7/31/2019 Introduction XNA game WindowsPhone7
12/15
-
7/31/2019 Introduction XNA game WindowsPhone7
13/15
XNA and Azure Cloud
Windows Azure storage services
Authentication and authorization
Push notification
-
7/31/2019 Introduction XNA game WindowsPhone7
14/15
Summary of XNA Benefits Creating high performance game in less time
Cross platform
game logic Rendering and effects
GPU for performance
Support multiplayer games
Game social network --- Xbox live!
-
7/31/2019 Introduction XNA game WindowsPhone7
15/15
Thank you