コード例 #1
0
ファイル: Program.cs プロジェクト: timdetering/Physics2D.Net
        static void Main(string[] args)
        {

            Console.WriteLine("Welcome to the Physics2D.Net Demo");

            Console.WriteLine("In the demo pressing the number keys or W-O will load different demos.");
            Console.WriteLine("Left Clicking will allow you to pick objects up.");
            Console.WriteLine("Middle clicking on the screen will launch a projectile where you click.");
            Console.WriteLine("Right clicking and holding will shoot out particles where you click.");
            Console.WriteLine("holding M will place 3 rotating rays that shoot out particles on impact.");
            Console.WriteLine("The left and right arrow keys will move the tank.");
            Console.WriteLine("SpaceBar will fire the tanks cannon.");
            Console.WriteLine("In the upper left corner a small colored box will appear.");
            Console.WriteLine("If it is green then the engine has too little to do and is skipping a timestep");
            Console.WriteLine("If it is red then the engine has too much to do.");
            Console.WriteLine("P or Pause will pause the simulation.");
            Console.WriteLine("Press Enter To Start");
            Console.ReadLine();

            OpenGlWindow g = new OpenGlWindow(1024, 768);
            Demo demo = new Demo();
            g.Draw  += demo.Draw;
            g.ReShape += demo.Reshape;
            g.Run();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: homoluden/Phisics2D.Net
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to the Physics2D Demo");

            Console.WriteLine("In the demo pressing the number keys will load different demos.");
            Console.WriteLine("Left clicking on the screen will launch a projectile where you click.");
            Console.WriteLine("Right clicking and holding will shoot out particles where you click.");
            Console.WriteLine("The arrow keys will control one of the objects on the screen");
            Console.WriteLine("In the upper left corner a small colored box will appear.");
            Console.WriteLine("If it is green then the engine has too little to do and is skipping a timestep");
            Console.WriteLine("If it is red then the engine has too much to do.");
            Console.WriteLine("After each demo loads it prints to the console how many objects are in the demo.");
            Console.WriteLine("Press Enter To Start");
            Console.ReadLine();
            Demo demo = new Demo();
            OpenGlWindow g = new OpenGlWindow(1024,768);
            g.DrawCallback  = demo.Draw;
            g.Run();
        }