// Constructor public MainPage() { InitializeComponent(); helloWorldGame = new MiniCubeGame(); helloWorldGame.Run(DrawingSurface); }
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(); } }
public MainPage() { InitializeComponent(); game = new MiniCubeGame(); game.Run(this); }
static void Main() { using (var program = new MiniCubeGame()) program.Run(); }
static void Main() { var program = new MiniCubeGame(); program.Run(); }