Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional XNA Programming 2nd Edition ISBN: 978-0-470-26128-6
This is the forum to discuss the Wrox book Professional XNA Programming : Building Games for Xbox 360 and Windows with XNA Game Studio 2.0, 2nd Edition by Benjamin Nitschke; ISBN: 9780470261286
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XNA Programming 2nd Edition ISBN: 978-0-470-26128-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 11th, 2008, 03:01 PM
Registered User
Join Date: May 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XnaPong ball movement note

Just a note on the XNA Pong game in Chapter 2, the book makes no mention of this but the downloaded code for the chapter has some slight changes to the XnaPong constructor. The last two lines in my code below need to be added for your ball to actually move.

public PongGame()
  graphics = new GraphicsDeviceManager(this);
  Content.RootDirectory = "Content";

  // Don't limit the framerate to the vertical retrace
  graphics.SynchronizeWithVerticalRetrace = false;
  this.IsFixedTimeStep = false;

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XNAPong trouble PyroFossa BOOK: Professional XNA Programming 2nd Edition ISBN: 978-0-470-26128-6 0 May 2nd, 2008 09:30 PM
Ball movement problems lyndonh BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 2 January 18th, 2008 05:25 AM
Ball class in C# devcon5 VB.NET 2002/2003 Basics 0 April 2nd, 2006 12:13 AM
Just a quick note rocky2083 Wrox Book Feedback 0 December 19th, 2004 06:04 PM

All times are GMT -4. The time now is 04:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.