Game Development Reference
In-Depth Information
{
public Form1()
{
InitializeComponent();
}
}
}
This is default code created by Visual Studio for a Windows Form project. The
using statements at the top refer to the different libraries the form is using.
Now that we have an Engine project, a new using statement can be added.
using Engine;
This will provide access to all the classes in the engine library. The normal setup
code also needs to be written. Here is the default setup code for a new game
project.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Tao.OpenGl;
using Tao.DevIl;
using Engine;
namespace EngineTest
{
public partial class Form1 : Form
{
bool
_fullscreen
= false;
FastLoop _fastLoop;
StateSystem _system = new StateSystem();
Input _input = new Input();
TextureManager _textureManager = new TextureManager();
public Form1()
Search WWH ::




Custom Search