|
Everything you need to know to get starting making your game with the XNA framework.
|
|
Getting a new game going with XNA starts with creating a new game project. This XNA tutorial walks you through setting up a new XNA Windows game project and seeing that first Cornflower Blue screen.
|
|
Before you can start displaying your graphics and images on the screen, you first need to add them to the game project and make them available through the Content Pipeline. This XNA tutorial walks you through the steps required to add an image or images to your game.
|
|
Creating a 2D sprite. Tutorial covers, creating a sprite, drawing it to the screen and introduces some object oriented programming.
Download the source code
|
|
Tutorial covers loading background sprites and auto-scrolling them horizontally in a continuous loop.
Download the source code
Download the advanced source code
|
|
A simple math game developed using XNA. Control the jelly as he hops around the board answering simple addition questions. Get questions correct to earn JellyBeans, get a question wrong and release the Shark creature! Game covers XNA development concepts like displaying text, moving a sprite, playing sounds and more.
Download the source code
|
|
This is part one of a four part series covering sprite movement. Part one covers gathering input from the player via the keyboard and using it to move a sprite around on the screen.
Download the source code
|
|
This is part two of a four part series covering sprite movement. Part two covers adding the code to the project to make the Wizard sprite jump around the screen.
Download the source code
|
|
This is part three of a four part series covering sprite movement. Part three covers adding the code to the project to make the Wizard sprite duck. This code introduces the concepts of frames and using a spritesheet.
Download the source code
|
|
This is part four of a four part series covering sprite movement. Part four covers adding the code to the project to make the Wizard sprite shoot fireballs. This tutorial covers the basics of creating and maintaing projectiles.
Download the source code
|
|
A full game developed using XNA including a start screen, background music, SoundFX, score, multiple levels and Game Over. A Tetric clone is generally considered one of the "baby steps" for new game developers. Tutorials will be coming in the future, but for now the source code is available for your viewing pleasure.
Download the source code
|
|
A tutorial developed to show how to achieve a fade in, fade out effect with a a 2D image. This tutorial walks you through creating a game project, adding an image to that project, displaying the image and adding the effect of fading the image in and out of the scene. Along with the tutorial and it's source code, there is an enhanced sample showing multiple images fading in and out of the scene Cheshire cat style which can be downloaded from within the tutorial.
Download the source code
|
|
A tutorial developed to show how to create an RTS style selection box. This tutorial walks you through creating a game project, adding an image to that project, displaying the image, making the mouse pointer visible and using the mouse to create a selection box. Along with the tutorial and it's source code, there is an enhanced sample showing how you can use the selection box to select some simple "units" and move them around the game window. This "One Step Further" tutorial can be downloaded from within the "You have been Selected!" tutorial.
Download the source code
|
|
A tutorial developed to show the basics of how to create a Health bar. This tutorail will walk you through creating a game project, adding an image to that project, tracking the current health level and displaying that appropriately with a health bar.
Download the source code
|
|
A sample game developed to show the basics of making one of the recommended "starter" games. This sample covers gamepad input, simple gamestate management and sprite movement and collision. The source doe is available to give new game developers some more entry level games to look over as they continue to learn the ins and outs of game development with XNA Game Studio.
Download the source code
|
|
A sample game I used to present 2D game development at the Portland Code Camp 3.0. This game introduces basic 2D game development concepts like keyboard input, using game time, loading textures, moving sprites on the screen and scrolling a background vertically as well as simple game state and object re-use.
Download the source code
|
|
A little game I developed over the weekend to help demonstrate some simple 2D game development concepts like character animation, jumping in an arc, background music, triggering soundfx, game state and creating title and instruction screens. More importantly, I created the game to help raise awareness for Scott Hanselman's fund raising to help fight diabetes. So take a look a the game and take some time to make a donation for the fight!
Download the source code
|
|
This is a game demo with full source that showcases a 2D motion blur technique. In this game, you play as the Cop and must catch all the Robbers before times runs out. The game is a good example of exploring some different game architecture techniques. It also gives examples of rotating images, playing sounds, accepting both keyboard and gamepad input and some 2D animation. It also has one snazzy title screen!
Download the source code
|
|
This is the images and source code for the article I wrote for the Sept/Oct 2007 issue of CoDe magazine. If you're following the code along in the book, the images and source code provided here should help you finish the project out.
Download the source code
|
|
This tutorial walks through step by step using a color key to do path collision. The example used is for a super sprint style track, but the code could be used for a variety of projects. By the end of the tutorial, the reader should be familiar with moving and rotating a sprite, using GetData() to get pixel information and have an introductory understanding of RenderTarget2D objects and how they can be used.
Download the source code
|
|
|