Download presentation
Presentation is loading. Please wait.
Published byClaire Greer Modified over 8 years ago
3
Consumer Windows Phone Emulator Phone Emulator SamplesDocumentation GuidesCommunity Packaging and Verification Tools Windows Phone Dev Tools AppHub Free Download!: http://create.msdn.com
7
All games do three things Resource management is critical in a game in order to maximize performance Initialize Engine Load Resources Free Resources Get User Input Calculate Test Criteria Give FeedBack
8
All games do three things XNA Framework games run at 30 fps on Windows Phone Initialize() LoadContent() UnLoadContent() XNA Framework Game Loop Updatet() Draw()
12
Texture2D smudgeTexture = Content.Load ("Smudge"); smudge = new Sprite(this, smudgeTexture, Vector2.Zero, Color.Red, 20, 0);
13
public virtual void Draw(SmudgeGame game) { game.spriteBatch.Draw( spriteTexture, // texture of sprite spritePosition, // vector position on screen null, // source rectangle in texture (all of it) spriteColor, // colour of the light spriteRotation, // rotation – in radians spriteOrigin, // centre of sprite – position and rotation spriteScale, // scale – scaled to fit SpriteEffects.None, 1); // draw everything at the same depth }
14
Demo 1
15
List gameSprites = new List ();
16
foreach (ISprite sprite in gameSprites) sprite.Draw(this);
18
protected override void Initialize() { TouchPanel.EnabledGestures = GestureType.Tap | GestureType.FreeDrag; base.Initialize(); }
19
while (TouchPanel.IsGestureAvailable) { GestureSample gesture = TouchPanel.ReadGesture(); gameSprites.Add( new Sprite(this, smudgeTexture, gesture.Position, Color.Red, 20,0)); }
20
Demo 2
29
<Deployment xmlns= "http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="WindowsPhonePuzzle" EntryPointType="WindowsPhonePuzzle.App" RuntimeVersion="3.0.40624.0"> <AssemblyPart x:Name="WindowsPhonePuzzle" Source="WindowsPhonePuzzle.dll" />
32
<App xmlns="" ProductID="{eb43b2c2-b7e9-4e5c-8aea-8047eb5e335f}" Title="FunkyCamera" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="FunkyCamera author" Description="Sample description" Publisher="FunkyCamera">
38
38
43
43
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.