Demos
The idea of these demos is to get you started on some of the aspects we see in
the game projects students create. You are allowed to use the code here as
reference or directly in your own games.
As XNA is continually evolving, we are still expanding this site. If you
find a bug, would like to update one of the demos, or would like
to add a new one, please tell us about it.
Ship Demo
Demonstrates image drawing, rotation and scaling, sound effects, background
drawing from an image, and simple mathematics for physics.
|
Cheshire Cat
Demonstrates transparency and image fading.
Taken from a tutorial by
George Clingerman.
|
Scrolling Background
Demonstrates how to put images together for a smooth scrolling background,
such as in a platformer.
Taken from a tutorial by
George Clingerman.
|
Path Collision
Demonstrates a simple way to do path collision using color keying.
Taken from a tutorial by
George Clingerman.
|
Sample Level Editor
This is a sample level editor, based off the one used for the CIS 3000 game Forgotten Sky.
This source code should give you some idea how to construct your level editor. As will probably
be the case in your game, the level editor and the included game share a substantial amount of
code.
|
Parallax Scrolling
This is another example of a side scrolling background. However, this example
introduces parallax scrolling in order to give your game some feeling of
depth. Parallax scrolling does not actually give you 3D game play, but it
does make the game look nicer.
|
|