Keyboard input is essential in most games. The user might use it for moving a character, mario style enemy killing and many other things. XNA supports so called keyboard states to detect keyboard input.
Categories
Keyboard input is essential in most games. The user might use it for moving a character, mario style enemy killing and many other things. XNA supports so called keyboard states to detect keyboard input.
The World, Projection and View matrices are used in XNA to project your 3D world on your 2D computer screen. The theory behind 3D projection can be found here.
Always wanted to have your own random color generator in C#? This snippet shows you how to do it.
Microsoft XNA can be used to develop computer games. This code snippet contains a so called GameComponent written in C#. The GameComponent is called Framerate and it simply calculates the frame rate of the game at each Update cycle.