I'M reading this tutorial at http://www.tuxradar.com/beginnerscode at all I have done thus far is enough for an empty game window built with two small .cs files.
Here are the error messages.
Line=15, Column=72, Type=Error, Priority=Normal, Description=An object reference is required to access non-static member TroutWars.MainClass.Quit(object, SdlDotNet.Core.QuitEventArgs)'(CS0120)]
&
Description=`System.EventArgs' does not contain a definition for `Run'(CS0117)]
Here are the files
using System;
using SdlDotNet;
using SdlDotNet.Core;
using SdlDotNet.Graphics;
using System.Drawing;
namespace TroutWars
{
class MainClass
{
public static void Main(string[] args)
{
TroutWars game = new TroutWars();
Video.SetVideoMode(1024, 768);
Events.Quit += new EventHandler<QuitEventArgs>(Quit);
EventArgs.Run();
}
void Quit(object sender, QuitEventArgs e)
{
Events.QuitApplication();
}
}
}
using System;
using SdlDotNet;
using SdlDotNet.Core;
using SdlDotNet.Graphics;
using System.Drawing;
namespace TroutWars
{
public class TroutWars
{
public TroutWars()
{
Console.WriteLine("Hello World!");
}
}
}
Any help would be greatly appreciated, thanks.