Upload
cory-fowler
View
2.433
Download
2
Tags:
Embed Size (px)
DESCRIPTION
Learn how to develop XNA Games for Windows Phone 7
Citation preview
Learning ObjectivesXNA Game Programming Basics
What is XNA?
Why Windows Phone 7?
Dream. Build. Play.
Next Steps…
“ The hardest thing about creating your first game is finishing it. – @OwenGoss
The Basics
Focus on gameplay! There's no point in having the latest, greatest tech in a game if the gameplay is terrible. - @Justin_Hebert
“
Sensorsusing Microsoft.Devices.Sensors;
AccelerometerReadingEventArgs accelState;Accelerometer _accelerometer = new Accelerometer();if (_accelerometer.State == SensorState.Ready){ _accelerometer.ReadingChanged += (s, e) => { accelState = e; }; _accelerometer.Start();}
InputTouchCollection touchState = TouchPanel.GetState();
//interpret touch screen pressesforeach (TouchLocation location in touchState){ switch (location.State) { case TouchLocationState.Pressed: buttonTouched = true; break; case TouchLocationState.Moved: break; case TouchLocationState.Released: break; }}
TombstoningFor games, when the Back button is pressed during gameplay, the game can choose to present a pause context menu or dialog or navigate the user to the prior menu screen. Pressing the Back button again while in a paused context menu or dialog closes the menu or dialog.
Alien Game Lab
URL: http://hmbl.me/4BSBKO
Three Pillars of Game Development
Prototype
Performance
Polish
Trial ModeAn application must not invoke either of the Trial APIs in a tight loop. For example, a game application must not invoke either of the Trial APIs while in a game loop. The API should be called infrequently and the value returned should be cached
bool isTrial = Guide.IsTrialMode;
Game FeedbackThis requirement does not apply to applications that play sound effects through the Microsoft.Xna.Framework.Audio.SoundEffect class, as sound effects will be mixed with the MediaPlayer. The SoundEffect class should not be used to play background music.
SoundEffect alienFired = Content.Load<SoundEffect>("Tank_Fire");
alienFired.Play();
Next Steps…Topic URL
Sign up for App Hub http://hmbl.me/4BTK6G
Download Windows Phone Tools http://hmbl.me/4BTH3Z
App Certification Requirements http://hmbl.me/4BTIYK
XNA on Windows Phone 7 http://hmbl.me/4BTBMM
Analysis & Optimization of XNA http://hmbl.me/4BTFPR
Sprite Sheet Sample http://hmbl.me/4BU9N5
Shawn Hargreaves Blog http://hmbl.me/4BUIDM