コード例 #1
0
        static void Main(string[] args)
        {
            using (SandboxGame game = new SandboxGame())
            {
#if DEBUG
                /*
                 * int tickCount = 0;
                 * game.OnUpdate += () =>
                 * {
                 *      Console.WriteLine("Tick " + tickCount);
                 *      tickCount++;
                 * };
                 */
#endif
                game.OnEnd += () =>
                {
                    Console.WriteLine("Game over!");
                };

                game.Run();
            }
        }
コード例 #2
0
 static void Main()
 {
     using (var game = new SandboxGame())
         game.Run();
 }