Preview

Xna Tutorial 01

Good Essays
Open Document
Open Document
4172 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Xna Tutorial 01
Lab 1 – Building a Basic Game
Project XNA 2010 - Phil Ward & Paul Taylor 2010 (Revised by Andrew Herbert 2010)
This is the biggest and hardest tutorial you will have to do, it’s a fair bit of work, but once you have finished you will be ready to build heaps of games.
What are we building?
THE Color Game – Yes it is spelt wrong, but that is how you’ll need to spell it when you are programming the game!
Using your keyboard (and later on an Xbox 360 controller) you need to press the letter (R G B Y) or coloured button on the controller which matches the colour of the screen. By time we have finished three tutorials, you’ll be forcing players to think quickly, and giving them scores, taking away lives, and telling them when the game is over. To start with we will get the screen colour changing, and then start using the keyboard. * Creating a new project
Visual Studio 2008:
Start->All Programs->Microsoft XNA Game Studio 3.1->Microsoft Visual Studio 2008
Select File->New->Project
C# Express:
Start->All Programs->Microsoft XNA Game Studio 3.1->Microsoft Visual C# 2008 Express Edition
Select File->New Project

Select the XNA Game Studio 3.1 icon underneath the Visual C# node. A set of available projects will appear in the right pane. Then select the Windows Game (3.1) Icon

Give your project a name (such as PaulsGame) and simple location such as c:\XNA\,and then click on the OK button.
This will create the base Object and functions needed to build a game.
This will create a basic game for you, and you will be presented with the Visual Studio Interface.
On the Right hand side you will see the Solution Explorer

In the middle of the screen you will see the code window, the important things to look at are the Open File Tabs across the top, these will let you change objects very quickly later on, and the Method Selector, which you will be using a lot to find the method you want to edit.

By default the base Object is

You May Also Find These Documents Helpful

  • Satisfactory Essays

    3. New project wizard window will appear. Select options at shown as shown in figure 2 and go for Next…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    66) When Visual Studio displays a new project, a blank form is shown in the ________ window.…

    • 3668 Words
    • 15 Pages
    Good Essays
  • Satisfactory Essays

    And also I have learned how to create ASP.NET controls. There are different controls of ASP.NET. They are: ASP. Textbox, ASP. Gridview, ASP. Detailsview, ASP. Rotator:…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 16 Ao1

    • 529 Words
    • 3 Pages

    Every program is made up of sets of algorithms. These are the individual chunks of code which each carry out a process. When the algorithms are combined the whole game is formed. A common algorithm in games creation is a game loop. This is code which controls the actions that are carried out when there is no input from the user. Ordinary programs like a word processor will not do anything when there is no user input; they will just wait for the next command, but a game must keep running constantly, therefore a game loop runs constantly in the background of a game and is established when there is a pause in the input. This could just be to keep the environment active, such as a waterfall that keeps flowing; some involve the character making a reminder movement to the user.…

    • 529 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Case Problem Ms Project

    • 659 Words
    • 3 Pages

    1. Start Project 2010, open the Home-1 file located in the Project1\Case1 folder included with your Data Files, and then save the project file as NewHome-1 in the same folder.…

    • 659 Words
    • 3 Pages
    Good Essays
  • Good Essays

    There is also a tutorial available here that you may watch if you are having difficulty with registering.…

    • 1167 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Chapter 25 begins with Scout and Jem at home, resting on their back porch. Scout spots a roly-poly, and spends the next few minutes poking it. As she attempts to smash the roly-poly, Jem speaks up. “Why couldn’t I mash him?” Scout asked. “Because they don’t bother you,” Jem answered, symbolizing the idea of leaving mockingbirds, and all those that do not harm, alone. Assuming this is just a stage he’s going through, Scout lets it go and starts to doze off. She thinks of Dill and recalls his last days with them. Suddenly, Scout remembers what Dill had told her just before he left. Wide awake, Scout begins to tell the reader Dill’s story. On the way home from a swimming lesson at the creek, Dill and Jem saw Atticus and Calpurnia driving along the highway; they waved to him, trying to catch a ride, but Atticus protested. He said he wouldn’t be home for a while, but after much pleading from Jem, he agreed to take the boys home, as long as they stayed in the car. On the way to their destination, Atticus explained that he needed to deliver the news of Tom Robinson’s death to his family. After arriving at the Robinson’s house, Dill peered out the back seat window. He says that he saw a crowd of black children playing marbles in front of the house. Atticus sent a child to fetch his mother, while he and Calpurnia anxiously waited with the young-uns in the yard. A little girl came to the door, and stood staring at Mr. Finch. Her hair was a stiff wad of tiny pigtails, and she smiled from ear to ear. She tried to walk toward Atticus, but she could not navigate the few steps. Showing his nurturing nature, Atticus took off his hat, offered his finger, and eased her down the steps. Calpurnia held the little girl as Helen Robinson walked towards them. She warmly greeted the two, and then immediately fainted. Just fell down, like a giant stepped on her, as Dill described it. Calpurnia and Atticus lifted Helen to her feet, and helped her inside. Dill said they stayed inside for a…

    • 1319 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    For more specific questions and comments, you can use the Tutor review which gives more detailed explanations and a much more thorough check.…

    • 502 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    You can use the project template document as a guide for creating your project. To do this, first click the link above to view the document in a new browser window. Then under the Edit menu, choose Select All and then Copy. Then in your word processor, open a new blank document and choose Paste. You can then save this document onto your computer.…

    • 642 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    preamble

    • 537 Words
    • 3 Pages

    Take this 10-minute interactive tutorial: get helpful answers, plus a summary report you can save.…

    • 537 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    This link is a game creation site that allows the student to play, create, and publish games. The players choose games by searching tags and rate them after they…

    • 933 Words
    • 4 Pages
    Good Essays
  • Good Essays

    b) Dated – regular frequency under Workfile structure type if the data has regular date pattern. e.g. Monthly, weekly etc.…

    • 722 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Note:If you do not see Solution Explorer, you can access it from menu by going to View > Solution Explorer…

    • 804 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Lenovo B 40 User Guide

    • 6821 Words
    • 48 Pages

    Lenovo User Guide Read the safety notices and important tips in the included manuals before using your computer. Notes • Before using the product, be sure to read Lenovo Safety and General Information Guide first. • Some instructions in this guide may assume that you are using Windows® 7 or Windows® 8.1. If you are using other Windows operating systems, some operations may be slightly different.…

    • 6821 Words
    • 48 Pages
    Satisfactory Essays
  • Good Essays

    Dotnet

    • 1251 Words
    • 6 Pages

    Sign in Home Samples Languages Extensions Documentation Community Visual Studio Team Foundation Server/ALM .NET Framework Get started for free Developer Tools and Languages Visual Studio 2012 Application Development in Visual Studio Writing Code Code Snippets Visual C# Code Snippets How to: Use Surround-with Code Snippets How to: Restore C# Refactoring Snippets Code Snippet Functions…

    • 1251 Words
    • 6 Pages
    Good Essays

Related Topics