Skip to content

Instantly share code, notes, and snippets.

@K4rakara

K4rakara/Main.cs Secret

Created May 13, 2020 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save K4rakara/c58191b9fbe6cf5e192a1d7383fa1b98 to your computer and use it in GitHub Desktop.
Save K4rakara/c58191b9fbe6cf5e192a1d7383fa1b98 to your computer and use it in GitHub Desktop.
using System;
using SharpEngine;
namespace SharpGame
{
class Game1 : SharpContext
{
public static Game1 game1;
public Game1() : base()
{
Program.game1 = this;
game1 = this;
}
}
class Program
{
public static Game1 game1;
[STAThread]
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.logger.enableVerbose();
game.logger.Log("Starting up...", true);
game.logger.Log("Calling SharpContext.Run()...", true);
game.Run();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment