Example #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            helloWorldGame = new MiniCubeGame();
            helloWorldGame.Run(DrawingSurface);
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            helloWorldGame = new MiniCubeGame();
            helloWorldGame.Run(DrawingSurface);
        }
Example #3
0
        static void Main()
        {
            using (var program = new MiniCubeGame())
            {
                var triOrange = new MiniTriRenderer(program) { ForegroundColor = Color.Orange };
                program.GameSystems.Add(triOrange);

                var multiControlForm = new MultiControlForm();
                multiControlForm.Show();

                var triRed = new MiniTriRenderer(program, multiControlForm.RenderControl1) { ForegroundColor = Color.Red };
                program.GameSystems.Add(triRed);

                var triGreen = new MiniTriRenderer(program, multiControlForm.RenderControl2) { ForegroundColor = Color.Green };
                program.GameSystems.Add(triGreen);

                var triBlue = new MiniTriRenderer(program, multiControlForm.RenderControl3) { ForegroundColor = Color.Blue };
                program.GameSystems.Add(triBlue);

                program.Run();
            }
        }
Example #4
0
 public MainPage()
 {
     InitializeComponent();
     game = new MiniCubeGame();
     game.Run(this);
 }
Example #5
0
 static void Main()
 {
     using (var program = new MiniCubeGame())
         program.Run();
 }
Example #6
0
 static void Main()
 {
     using (var program = new MiniCubeGame())
         program.Run();
 }
Example #7
0
 public MainPage()
 {
     InitializeComponent();
     game = new MiniCubeGame();
     game.Run(this);
 }
Example #8
0
 static void Main()
 {
     var program = new MiniCubeGame();
     program.Run();
 }