Sunteți pe pagina 1din 3

Game-Programming Exercise Tutorial

for Secondary and High School Students

The second part for secondary and vocational school students


contains one exercise; Part 1: Implement Game Level 1. You have
Game-Programming Exercise
Introduction to be one of the first 120 students to solve the exercise and sub-
mit your programmed game including the game level 1 to us to
The Game-Programming Exercise is part of Microsoft Switzerland’s be able to win an Xbox 360 Arcade console. This tutorial provides
«You Make IT Smart: Code – Play – Win» campaign. Microsoft you with all the data you need to complete this exercises and
Switzerland is giving away up to 150 Xbox 360® Arcade consoles complete your own spaceship battle game. To be able to pass the
to inspire full-time students of Swiss educational institutions Game-Programming Exercise, the game you program must work
under public law to get hands-on experience of games develop- without any problems when we test-play it and must include all
ment with Microsoft® XNA® Game Studio and practice technical the features defined in the instructions. After you have completed
or artistic skills in competitions and other activities. the exercise, you must send the files containing your work to us
by e-mail, following the instructions in the Submission section of
Students have four chances to win an Xbox 360 Arcade console this document.
under the «You Make IT Smart: Code – Play – Win» campaign:
We estimate that the total time required for a novice XNA game
1. Complete the XNA Game-Programming Exercise, developer to complete this exercise is approximately 15–20 hours.
2. Compete in Imagine Cup 2010, If you are familiar with the required software and tools, we
3. Participate in selected Microsoft Switzerland events estimate that you can complete the exercise in approximately
for students, and 8–10 hours. Please note, however, that completion times vary
from person to person and you don’t have to complete every-
4. Do an IT Academy course and get professional Microsoft
thing all at once.
Certification as defined in the campaign rules.

Up to 120 Xbox 360 Arcade consoles will be awarded to students


completing the Game-Programming Exercise. This tutorial pro- Part 1:
vides details of what the exercise involves, what resources are
needed to complete the exercise and how the exercise can be Requirements & Downloads
submitted.
Before you can start solving the exercises you need to ensure that
Completion of this Game-Programming Exercise will help people you have the latest software downloaded to your PC and a funda-
gain the required knowledge on how to use Microsoft XNA Game mental knowledge of how to use the software provided. In Part 1
Studio 3.1 to program real Xbox games. By completing this exer- of this tutorial, we will provide you with all the information
cise you will learn the fundamentals of this software and create needed to get started.
your own spaceship battle game. You will be able to play your
created spaceship battle game with Xbox 360 console. All the
software needed to complete the exercise is freely available and Software Download and Installation
the only hardware required is a PC. As a first step you have to install Microsoft XNA Game Studio 3.1,
and Microsoft® Visual Studio® 2008 or Microsoft®
The Game-Programming Exercise is divided into two parts Visual C#® Express 2008 to your PC. We recommend the
In the first part, called Requirements & Downloads, you will first installation of Visual Studio 2008.
have to install the software needed for the exercises. You will also
need this same software if you start programming other Xbox If you are a student at a Swiss university, you can download
games in the future. During the first part you will learn the funda- Visual Studio 2008 Professional via the MSDN Academic Alliance
mental ideas of XNA Game Studio. The tutorial provides you with (MSDN AA) portal of your university. Here you find a list of all
links to the required information and downloads. institutions at which MSDN AA is available to students. Several
Swiss Universities of Applied Science and other educational
institutions also have access to MSDN AA, so we recommend
Part 2: Exercises
that you first see if the institution you are studying at is on the
MSDN AA member list. If your institution is an MSDN AA mem- Now that you have downloaded the required software and
ber, you can simply follow the instructions provided on the acquired basic knowledge about the subject of game program-
MSDN AA portal to download and install the required software. ming, it is time for you to start with the exercises. Please note
If you don’t have access to MSDN AA or you prefer to use that you must have finished the basic tutorial for 2D game pro-
Visual C# Express 2008 you can find the latest software here. gramming and use it as a template for the following exercises.

Secondly, you need to download the Microsoft XNA Game If you encounter any problems that you cannot overcome or
Studio 3.1 and install it on your PC. If you have access to the solve on your own, please contact us by e-mail at
MSDN AA via the educational institution at which you are swissarm@microsoft.com and explain what part of the
studying, you will find it in the download list. If you don’t have programming exercise you cannot solve. We will provide you
access to MSDN AA, you can download it here. XNA Game with some tips and tricks to help you overcome the problem.
Studio will provide you with the required gaming tools, libraries,
services and documentation. Implement Game Level 1
When you have finished this part, you are ready to start with the In this section you will add some nice functionality to the basic
Gaming tutorial. If you have any questions or problems with one game of the 2D game-programming tutorial. For some functionality
of the installation steps, simply send us an e-mail. we define in detail what you need to implement for a game,
whereas for other functionality we specify fewer requirements,
thus giving you the chance to be creative (e.g. if we advise you to
Knowledge and Tutorials program a cannon to be movable, you can decide how it moves,
On the http://creators.xna.com website you will find a lot of or if we advise you to add new UFOs to the game, you can decide
information and tutorials on the subject of game development. what they should look like). Some of the functionality can be
In this part we list the most important information that you need implemented by following tutorials available online. In these cases,
in order to work through the exercises. So let’s get started and we will provide you with a tip of the related tutorial in brackets.
work through the following tutorials:
To complete Game Level 1, please implement the following
Gaming in 2D – Basics functions for the basic game:
In this first 2D game tutorial you will learn the basics of game 1. Implement a scoring system for the game so that the player
development. There are different sections which are explained gets points when shooting UFOs (see tutorial).
in videos. When you go through it step by step, you will have a 2. Program UFOs to explode when they are hit by the player
nice experience of «learning by doing». Please note that you while shooting them (see «Adding 2D Particles and
have to complete this tutorial as a part of the exercise as you Explosions» tutorial).
will be creating the basic 2D spaceship game template while 3. Program the cannon such that it can be moved by the
going through this tutorial. player.
Click here for the XNA 2D Gaming Tutorial. 4. Program UFOs to drop randomly exploding bombs, which
damage the player’s cannon. The player should have 100
Gaming in 2D – Extra Tutorials energy points to begin with, and each hit of the bomb
At the end of the 2D game tutorial you can find a section should damage the player’s cannon by 10 points. Program
called «Extra Credit – Community Tutorials». It’s up to you to the game to end if the energy level falls to 0 points
choose which of these tutorials you want to do; just note that (see «Attacking Enemies and Shields» tutorial).
they can help you a lot to solve the exercises in the next part. 5. Add new UFOs to the game that have a new outlook and
Click here for the Extra Tutorials give the player more points if he hits them while shooting.
6. Implement a functionality such that if a player kills 10 UFOs
Gaming in 3D in a row without letting one escape, an icon falls from the
Here you can do some practical training in 3D game program- sky and the player gets a laser pointer for his cannon for a
ming. This tutorial is the next, more advanced step in game limited period of time.
programming, but is not necessary to complete this Game 7. Program a way for the player to pause the game.
Programming-Exercise.
Click here for the XNA 3D Gaming Tutorial
Tips and Tricks
If you encounter problems that you cannot overcome during
C# programming or if you are looking for information about
the Visual Studio 2008/ Visual C# 2008 features, check out the
MSDN page about Visual C#. Especially the «How Do I in C#»
section is very helpful if you don’t know how to complete certain
tasks with Visual C#.

If you are a Java programmer, you might find this Java (J2SE 5.0)
and C# comparison useful. It will help you to think in C#.

And finally, if you encounter any problems that you cannot over-
come or solve on your own with the help of our provided tutorials
and links, please contact us by e-mail at swissarm@microsoft.com
and explain what part of the programming exercise you cannot The Online Game-Programming Exercise is open to everyone
solve. We will provide you with some further tips and tricks to studying in Switzerland regardless of their educational level
help you overcome the problem. (employees of Microsoft and their family members excluded).
The submission period will begin on September 15, 2009 and end
when we have distributed the 120 Xbox 360 Arcade consoles, or
at the latest on May 30, 2010. Please see www.academiczone.ch
What Do You Have to Submit?
To pass this exercise you must submit your Game-Programming if you want to find out whether the submission time ends before
Exercise by e-mail. When you have finished, create a zip folder May 30, 2010.
named xna_your-lastname_your-firstname.zip (ex. xna_meier_
hans.zip) and send it to swissarm@microsoft.com* following Submitting a solution does not give the competitor any entitle-
the submission instructions provided in the General Participation ment to a game device. Microsoft holds the sole right to judge
Rules & Submission Instructions section of this tutorial. If you have the submitted exercises and will contact each student receiving
any questions or if you come up against problems you cannot an award in person**. If we discover that you have copied your
solve within a reasonable time, you can send an e-mail to the solution or parts of it from other participants (outside of pub-
same address. lished tutorials), Microsoft reserves the right to refrain from giving
you a prize and disqualify your participation in the campaign.
General Participation Rules & Submission
Instructions Additional Prize of 10 Xbox Games to the

Microsoft Switzerland is giving away up to 120 free Xbox 360


Game Programmer with the Most
Arcade consoles to participants in the Game-Programming Exer- Innovatively Customized Game
cise as defined in these general participation rules. To participate
We encourage you to take your game one step further – why not
in this exercise for a chance to get an Xbox 360 Arcade, complete
add additional features or levels to the game, or create stunning
the Game-Programming Exercise with Microsoft XNA Game
visuals? We will be evaluating all the games submitted to us by
Studio 3.1 in accordance with the instructions provided in this
the closing date of the campaign and awarding an additional
tutorial and submit your work to swissarm@microsoft.com*.
prize of 10 Microsoft Game Studio Xbox games for the game
in zip format (named xna_your-lastname_your-firstname.zip)
programmer with the most creatively customized game. Microsoft
for evaluation, stating your full name, your postal address
holds the sole right to judge the submitted exercises and will
and the name of the institution at which you are studying.
contact the student receiving this additional award in person via
e-mail**.
Please note that you must submit your entry to us from your
personal e-mail address at the school at which you are studying.
If you are studying at a vocational, high, secondary or primary
school and your school hasn’t provided you with a personal * We will process the personal data and/or communication data provided by you in order to run and
e-mail address, you may submit your entry from your private handle the competition and in conformance with our General data privacy rules (English). We may
make the personal data provided/disclosed by you available to other companies of the Microsoft
e-mail address, but you must also send us a scanned copy of Group for the aforementioned purposes, as well as to subcontractors within and outside of your

your student card.


country of residence, including countries which do not provide for a level of data protection
equivalent to the one of your country of residence. Please ensure that any personal data that you
provide to us is accurate. You are entitled to correct any errors in the personal data held by us

If you have performed the game exercise correctly, completing


about you and to request a copy of the information. In the event of any queries, please contact
swissarm@microsoft.com. By submitting your work and personal data to Microsoft by e-mail, you
the predefined tasks as defined in this tutorial, and you have confirm your consent to the processing of your personal data, in the manner described above, and
your acceptance of these terms.
e-mailed your entry to us as one of the first 120 students passing
the exercise, we will award you a free Xbox 360 Arcade console.
** Microsoft has no obligation to disclose any results, reasons, names or any other information
connected with the competition (no correspondence). Competitors have no entitlement to
Please note that the number of Xbox 360 Arcade consoles is reimbursement of any expenses they may have incurred in order to take part in the competition
or to any remuneration whatsoever against Microsoft.
limited and only the first 120 students submitting correct solu-
tions to the exercise (in order of receipt of the e-mails, on a
«first come first served» basis) will be awarded one console each.

© 2009 Microsoft Corporation. All rights reserved. All above mentioned products are either registered trademarks or trade-
marks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned
herein may be the trademarks of their respective owners. Subject to change.

S-ar putea să vă placă și