Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2008, 03:01 PM
Registered User
 
Join Date: May 2008
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.

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

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





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





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