コード例 #1
0
        private void InitializeCore()
        {
            worldCanvas.MouseLeftButtonDown += new MouseButtonEventHandler(WorldCanvas_MouseLeftButtonDown);

            test        = new Chicken(100, 100, 60, 60, 0, 0, 0.1);
            gamePhysics = new GamePhysics();
            gamePhysics.DynamicGraphicsList.Add(test);

            gameGenerator = new GameGenerator(ref worldCanvas, ref gamePhysics);

            worldCanvas.Children.Add(test.GetRepresentation());

            scoreWatch.Start();
        }
コード例 #2
0
ファイル: GameCore.cs プロジェクト: wdownload/chickenpanic
        private void InitializeCore()
        {
            worldCanvas.MouseLeftButtonDown += new MouseButtonEventHandler(WorldCanvas_MouseLeftButtonDown);

            test = new Chicken(100, 100, 60, 60, 0, 0, 0.1);
            gamePhysics = new GamePhysics();
            gamePhysics.DynamicGraphicsList.Add(test);

            gameGenerator = new GameGenerator(ref worldCanvas, ref gamePhysics);

            worldCanvas.Children.Add(test.GetRepresentation());

            scoreWatch.Start();
        }