Samuel's profileTech ChallengeBlogListsGuestbookMore ![]() | Help |
Tech ChallengeInformation about the Tech Challenge |
|||||||||||||||||||||||||||||||||||||
|
September 19 Tech challenge RulesTech Challenge
Here is a description of the Tech Challenge
February 03 Pong in 5 MinutesWork along with the video, use the code snippets below to follow along, along with the simple graphics: This video, along with the code snippet file that you can find at my sky drive: >>Pong in 5 minutes code snippets and image files<<
Investigating the Point concept in XNA and PongWhat is the Point in XNA? Take a look at this video, and use the code snippets below to follow along, the simple graphic is included.
December 28 PONG: The Adventure begins! Adding graphics to XNA Express!
December 27 Creating Games with the XNA Framework - Part 1 (starting over again, hang in there)GETTING READY TO Build Pong Before you get going make sure you have done these steps:
XNA Game Studio Express
Steps to Reproduce “In this session, I will be showing you how to build a game step by step using XNA Game Studio Express. The game we will be building is Pong - a game that should be quite familiar to you. Let’s start by launching XNA Game Studio Express and creating a brand new project.” 1. Launch XNA Game Studio Express “All XNA games have a standard template and format. First, you’ll notice that we are leveraging the XNA namespaces within our application, which provides support for audio, content, graphics, input controls and storage.” 1. Expand the Using Statements region “Notice that Game1 inherits from the Microsoft.Xna.Framework.Game interface which helps you easily manage the game’s logic and rendering code. We also define the GraphicDeviceManager object which handles the configuration and management of your graphic device. The ContentManager object is a run-time component that loads in managed objects from the binary files produced by the design time content pipeline.” 1. Scroll to the Game1 class “The Initialize() method sets up the initialization of the game. This is where you set up your game elements such as the sound effects.” 1. Scroll to the Initialize() method “LoadGraphicsContent() loads your games’ graphical content into the Resource Management Mode pools. You can use this method to load in the individual bitmap graphics for your game.” 1. Scroll to the LoadGraphicsContent() “UnloadGraphicsContent() is self-explanatory. It unloads your graphics contents and empties the pool. It will be called once the game screen is shut down. 1. Scroll to the UnloadLoadGraphicsContent() “Let’s now compile and run the game and take a look at the output. The result is simply a blank pale blue window. In case you are wondering, the exact color is CornflowerBlue.” 1. Hit F5 to compile and launch the “As you know, the classic version of Pong does not have a blue background, it has a black background. So let’s make the first change to our application and change the color to black.” 1. Go to the Draw() method in your code graphics.GraphicsDevice.Clear(Color.CornflowerBlue) to graphics.GraphicsDevice.Clear(Color.Black). All of the color options should appear in Intellisense “Now we’ll recompile and launch – now the game is starting to look more like the Pong we all know and love. In the next demo, I’ll show you how to implement the graphics within the game.” 1. Click F5 to compile and launch the
More to follow, hang in there! October 21 Another excellent blog about pong, with solid explanationsThis blog: http://eterragame.spaces.live.com/blog/cns!3FEF01FB0C7C77C7!144.entry is an excellent discussion about the nature of how the ball bounces in pong! Thanks for visiting!
|
||||||||||||||||||||||||||||||||||||
|
|