Contenu connexe Plus de Johan Lindfors (11) Develop for WP7 IRL2. agenda
• inspiration
• planering
• design
• utveckling
• publicering
20. planera & fokusera
• gör en sak riktigt, riktigt bra
• inga kruseduller
• förhindra misstag
• ”don’t make me think”
22. Who – personer som tränar
What – registrera träningstillfällen
When – efter att de tränat klart
Where – på gymmet
Why – för att dela med sig och tävla
24. metro
• design för utvecklare
• struktur, enkelhet, innehåll
• text
• rörelse
34. mvvm
• prism
• caliburn micro
• mvvmlight
• ultralight.mvvm
38. lagra data
• isolatedstorage
• serialisering
• xml/json/binärt
• inställningar
42. prestanda
• uppfattad vs verklig
• använd rörelse
• trådhantering
• analysera och optimera
• testa på en riktig enhet
44. marketplace
• testa, testa, testa
• lokal struktur
• uppdateringar
• auto-publicering
47. -(BOOL) animate
{
if([self animation] == nil)
{
[self draw];
return NO;
}
else
{
BOOL animationDone = [[self animation] animate];
[self draw];
if (animationDone)
{
x += [[self animation] currentX];
y += [[self animation] currentY];
z += [[self animation] currentZ];
rotation += [[self animation] currentRotation];
[animations removeObjectAtIndex:0];
}
return animationDone;
}
}
48. public bool Animate()
{
if (this.Animation == null)
{
this.Draw();
return false;
}
else
{
bool animationDone = this.Animation.Animate();
this.Draw();
if (animationDone)
{
x += this.Animation.CurrentX;
y += this.Animation.CurrentY;
z += this.Animation.CurrentZ;
rotation += this.Animation.CurrentRotation;
animations.RemoveAt(0);
}
return animationDone;
}
}
49. public bool Animate(GraphicsDevice graphics, BasicEffect effect)
{
if (this.Animation == null)
{
this.Draw(graphics, effect);
return false;
}
else
{
bool animationDone = this.Animation.Animate();
this.Draw(graphics, effect);
if (animationDone)
{
x += this.Animation.CurrentX;
y += this.Animation.CurrentY;
z += this.Animation.CurrentZ;
rotation += this.Animation.CurrentRotation;
animations.RemoveAt(0);
}
return animationDone;
}
}