-
-
Save K4rakara/c58191b9fbe6cf5e192a1d7383fa1b98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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