Source

SharpHammer / Examples / Program.cs

Full commit
using System;
using SharpHammer;

namespace Examples
{
	class Program
	{
		private static void Main(string[] args)
		{
			Core.Init();
			Log.ConsoleOutput = true;
			Log.SetFileOutput("log.txt");
			Config cfg;
			try {
				cfg = Config.FromFile("setting.json");
			} catch {
				cfg = Config.Default;
			}
			Engine eng = new Engine("Hello World!", cfg);
			eng.Update += eng_Update;

			Scene scn = new Scene("test");
			eng.ActiveScene = scn;
			Camera cam = new Camera();

			eng.ActiveCamera = cam;

			eng.Run();

			cfg.Dispose();
			eng.Dispose();
			Core.Release();
		}

		static void eng_Update()
		{

		}
	}
}