Your SlideShare is downloading. ×
0
Initialize   LoadContent                Update              Draw
interface ISprite{    void Reset(SamplerState game);    void Draw(SmudgeGame game);    void Update(SmudgeGame game);}
Texture2D smudgeTexture = Content.Load<Texture2D>("Smudge");smudge = new Sprite(this, smudgeTexture, Vector2.Zero,        ...
public virtual void Draw(SmudgeGame game){    game.spriteBatch.Draw(        spriteTexture, // texture of sprite        spr...
public virtual void Draw(SmudgeGame game){    game.spriteBatch.Draw(        spriteTexture, // texture of sprite        spr...
public virtual void Update(SmudgeGame game){}
List<ISprite> gameSprites = new List<ISprite>();
foreach (ISprite sprite in gameSprites)    sprite.Draw(this);
protected override void Initialize(){    TouchPanel.EnabledGestures = GestureType.Tap |                                 Ge...
while (TouchPanel.IsGestureAvailable){    GestureSample gesture = TouchPanel.ReadGesture();    gameSprites.Add( new Sprite...
Demo 1
class GrowingSprite : Sprite, Isprite{    float spriteGrowSpeed = 0.05f;    public override void Update(SmudgeGame game)  ...
Random colorRand = new Random();Color randomColor(){    int r = colorRand.Next(256);    int g = colorRand.Next(256);    in...
Demo 2
while (TouchPanel.IsGestureAvailable) {    GestureSample gesture = TouchPanel.ReadGesture();    if (gameSprites.Count > sm...
Demo 3
Demo 4
Demo 7
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"   xmlns:x="http://schemas.microsoft.com/winfx/2006...
<Capabilities><Capability Name="ID_CAP_LOCATION"/>  <Capability Name="ID_CAP_MEDIALIB"/>  <Capability Name="ID_CAP_PHONEDI...
<App xmlns=""   ProductID="{eb43b2c2-b7e9-4e5c-8aea-8047eb5e335f}"   Title="FunkyCamera" RuntimeType="Silverlight"   Versi...
http://go.microsoft.com/?linkid=9730558
57
using Microsoft.Phone.Marketplace;LicenseInformation info = new LicenseInformation();if ( info.IsTrial() ){    // running ...
67
http://www.robmiles.comTwitter @RobMiles
http://aka.ms/mbl-phone/starthttp://aka.ms/mbl-phone/toolshttp://aka.ms/mbl-phone/mangohttp://aka.ms/mbl-phone/register
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Upcoming SlideShare
Loading in...5
×

Students to Business Day 2012: Rob Miles

524

Published on

Published in: Technology, Art & Photos
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
524
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Demo 2 – SmudgeDraw
  • Make the point that it is more efficient to opimise the important bits than to try to optimise everything.A good diagnostic tool will tell you where your program is spending most of its time.
  • Make the point that this will tell you about asset use, give indication of most popular methods and the time spent in them.
  • Make the point that this can be obtained from the real device too.
  • Demo 2 – SmudgeDraw
  • Make the point that whenever a program is downloaded into a device for execution or deployment it is a XAP file that is sent.The XAP file is the totality of output from the Visual Studio solution. It contains XNA content too, if this has been added.
  • Say that I got this by renaming the XAP file to ZIP and just browsing it
  • This is something that people should not have to fiddle with, but it is useful to know how this all fits together
  • This file is something that is very important. If you want to put an application in the Marketplace you will need to edit this file.
  • Make the point that by default the project has every capability registered.You should make sure you only ask for the ones that you need.
  • This step is very easy to do.Make the point that all these fields must be filled in correctly.The Genre setting determines what hub the application appears in, game or Silverlight
  • We have seen the files as they are deployed in the XAP file. Now we can see how they are created and managed by the developer
  • This is the file that you will submit.
  • This is a very important document, make sure that everyone is aware that they must read this.Also remind folks that this document is updated quite frequently as the abilities of the phone evolve.For this reason they should keep up to date with it.
  • This is a very useful way of testing programs. Make the point that you can deploy to the emulator as well.
  • Make the point that hardware folks will always be able to break into the phone platform and steal stuff.For that reason, be careful about what you put out there.
  • Make the point that the PreEmptive system also includes some very useful reporting tools.
  • It might be worth mentioning some initiatives with Chevron who are bringing some lower cost “homebrew” access options.
  • The payment to overseas is a pain, but not a problem.There are also some third party publishing houses that will allow you to publish your applications if you don’t want the hassle of publishing your own or you are based in one of the few countries that does not support Windows Phone Marketplace
  • There is some history here, in that originally the number of free apps was limited.The limit was effectively removed some time back
  • Note that there is nothing to stop developers releasing a fully functional application in “try before you buy” mode.
  • Make the point that this happens to ensure a certain level of quality of applications.Remind folks that they can use this service as many times as they like.My experience has been that the validation process is speedy and the feedback is excellent
  • My experience of this has been very good.
  • The testing kit lets you perform the same automated tests that are performed during a submission.It also provides a set of steps identical to the ones used when the application is tested.Mention that the kit automatically updates with new procedures if the testing process changes.
  • This is very new and shiny. The documentation for this lovely new feature is here:http://msdn.microsoft.com/en-us/library/hh334585(v=VS.92).aspx
  • Transcript of "Students to Business Day 2012: Rob Miles"

    1. 1. Initialize LoadContent Update Draw
    2. 2. interface ISprite{ void Reset(SamplerState game); void Draw(SmudgeGame game); void Update(SmudgeGame game);}
    3. 3. Texture2D smudgeTexture = Content.Load<Texture2D>("Smudge");smudge = new Sprite(this, smudgeTexture, Vector2.Zero, Color.Red, 20, 0);
    4. 4. 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}
    5. 5. 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}
    6. 6. public virtual void Update(SmudgeGame game){}
    7. 7. List<ISprite> gameSprites = new List<ISprite>();
    8. 8. foreach (ISprite sprite in gameSprites) sprite.Draw(this);
    9. 9. protected override void Initialize(){ TouchPanel.EnabledGestures = GestureType.Tap | GestureType.FreeDrag; base.Initialize();}
    10. 10. while (TouchPanel.IsGestureAvailable){ GestureSample gesture = TouchPanel.ReadGesture(); gameSprites.Add( new Sprite(this, smudgeTexture, gesture.Position, Color.Red, 20,0));}
    11. 11. Demo 1
    12. 12. class GrowingSprite : Sprite, Isprite{ float spriteGrowSpeed = 0.05f; public override void Update(SmudgeGame game) { spriteScale += spriteGrowSpeed; base.Update(game); }}
    13. 13. Random colorRand = new Random();Color randomColor(){ int r = colorRand.Next(256); int g = colorRand.Next(256); int b = colorRand.Next(256); return Color.FromNonPremultiplied(r, g, b, 255);}
    14. 14. Demo 2
    15. 15. while (TouchPanel.IsGestureAvailable) { GestureSample gesture = TouchPanel.ReadGesture(); if (gameSprites.Count > smudgesLength) gameSprites.RemoveAt(0); gameSprites.Add(new GrowingSprite(this, smudgeTexture, gesture.Position, randomColor(), 20, 0));}
    16. 16. Demo 3
    17. 17. Demo 4
    18. 18. Demo 7
    19. 19. <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"> <Deployment.Parts> <AssemblyPart x:Name="WindowsPhonePuzzle" Source="WindowsPhonePuzzle.dll" /> </Deployment.Parts></Deployment>
    20. 20. <Capabilities><Capability Name="ID_CAP_LOCATION"/> <Capability Name="ID_CAP_MEDIALIB"/> <Capability Name="ID_CAP_PHONEDIALER"/> <Capability Name="ID_CAP_PUSH_NOTIFICATION"/> <Capability Name="ID_CAP_SENSORS"/> <Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/> <Capability Name="ID_CAP_ISV_CAMERA"/> <Capability Name="ID_CAP_CONTACTS"/> <Capability Name="ID_CAP_APPOINTMENTS"/></Capabilities>
    21. 21. <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">
    22. 22. http://go.microsoft.com/?linkid=9730558
    23. 23. 57
    24. 24. using Microsoft.Phone.Marketplace;LicenseInformation info = new LicenseInformation();if ( info.IsTrial() ){ // running in trial mode}
    25. 25. 67
    26. 26. http://www.robmiles.comTwitter @RobMiles
    27. 27. http://aka.ms/mbl-phone/starthttp://aka.ms/mbl-phone/toolshttp://aka.ms/mbl-phone/mangohttp://aka.ms/mbl-phone/register
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×