Game Development Reference
In-Depth Information
{
/// < summary >
/// The main entry point for the application.
/// < /summary >
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
If this code is run, it will just show a standard Windows form. At the moment,
this is an event-driven application. If it was executing continuously then it might
look like this.
namespace GameLoop
{
static class Program
{
/// < summary >
/// The main entry point for the application.
/// < /summary >
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
static void GameLoop()
{
// GameCode goes here
// GetInput
// Process
// Render
}
}
}
Search WWH ::




Custom Search