Part 7: Camera class

So this section of my tutorials we are going to cover Cameras, we will be creating two classes our main Camera class and our First Person Camera, later we will be adding a Third Person Camera(Chase Camera). So let’s look at the code for our main Class that our First Person will inherit from. using [Read More →]

Part 6: Utilities

So in this post we are going to cover some utilities that will make out life’s allot easier going forward. So Lets have a look at out first new class it’s called MathUtil. The Class will have the following function, CreateProjectionMatrix  - Generates a projection matrix for a draw call CreateWorldMatrix – Creates a world matrix Vector3ToMatrix [Read More →]

Part 5: Adding Unit tests

I tutorial is completly optional and not needed for our engine but I thought it would be worth while to add some Unit Tests. I am using mstest that comes built into visual studio 2010, you could also use nunit if you wished or any unit test framework that works with .net. Am normally very [Read More →]

Part 4: The Engine

Well I know its only been a couple of hours since my last post but since we haven’t really got anything working yet and there is errors in the code due to missing classes, I thought I would get this one up as soon as possible.   So lets get started. The Engine Class this is [Read More →]

Part 3: Starting Coding the Engine

So in this tutorial we are going start our engine, we will be making 3 classes and a interface, Component Class Component Interface GameScreen Class Component Collection Class So we are going to start with our component class this is the basis for all objects managed by the engine. using Microsoft.Xna.Framework; using System; using Engine.GameScreens; [Read More →]

Part 2: Engine Design

So in this part of my tutorials we are going to talk about the engines design and structure. The image below shows how we are going to layout the basic folder structure for our engine.

Part 1: What is a Games Engine?

Well this blog will document me creating a game engine using Microsoft xna framework. So lets start with a little background, Wikipedia defines a game engine as “a system designed for creation and development of video games” thanks Wikipedia that it in a nut shell.

Switch to our mobile site