... said, it’s probably safe to dive in!
Building XNA 2. 0 Games
A Practical Guide for Independent
Game Development
■■■
James Silva and John Sedlak
Building XNA 2. 0 Games: A Practical Guide for Independent ... the publisher.
ISBN-13 (pbk): 978-1-43 02 - 09 79-9
ISBN-13 (electronic): 978-1-43 02 - 09 80- 5
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trad...
... text.Size = 0. 8f;
spriteBatch.Begin(SpriteBlendMode.AlphaBlend);
spriteBatch.Draw(nullTex, new Rectangle( 500 , 20 , 28 0, 5 50) ,
new Color (0, 0, 0, 100 ));
spriteBatch.End();
for (int i = 0; i < ... it.
text.Size = 3.0f;
text.Color = new Color (0, 0, 0, 125 );
for (int i = 0; i < 3; i++)
{
if (i == 2)
text.Color = Color.White;
text.DrawText (25 - i * 2, 25 0...
... (ballLoc.X > 800 .0f) playing = false;
if (ballLoc.X < 0. 0f) playing = false;
if (ballLoc.Y < 50. 0f)
{
ballLoc.Y = 50. 0f;
ballTraj.Y = -ballTraj.Y;
}
if (ballLoc.Y > 5 50. 0f)
{
ballLoc.Y ... ItemRemoved;
Building XNA 2. 0 Games
A Practical Guide for Independent
Game Development
■■■
James Silva and John Sedlak
20
CHAPTER 2
■ A CRASH COURSE IN XNA
Buil...