Presentation is loading. Please wait.

Presentation is loading. Please wait.

Consumer Windows Phone Emulator Phone Emulator SamplesDocumentation GuidesCommunity Packaging and Verification Tools Windows Phone Dev Tools AppHub.

Similar presentations


Presentation on theme: "Consumer Windows Phone Emulator Phone Emulator SamplesDocumentation GuidesCommunity Packaging and Verification Tools Windows Phone Dev Tools AppHub."— Presentation transcript:

1

2

3 Consumer Windows Phone Emulator Phone Emulator SamplesDocumentation GuidesCommunity Packaging and Verification Tools Windows Phone Dev Tools AppHub Free Download!: http://create.msdn.com

4

5

6

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()

9

10

11

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);

17

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

21

22

23

24

25

26

27

28

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" />

30

31

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">

33

34

35

36

37

38 38

39

40

41

42

43 43

44

45

46

47

48

49


Download ppt "Consumer Windows Phone Emulator Phone Emulator SamplesDocumentation GuidesCommunity Packaging and Verification Tools Windows Phone Dev Tools AppHub."

Similar presentations


Ads by Google