コード例 #1
0
ファイル: Program.cs プロジェクト: Kaidstor/SpaceInviders
        private static void BuildMenu(Engine engine)
        {
            Cursor cursor = new Cursor(new MatrixPosition(3, WorldCols + 1));

            engine.AddObject(cursor);

            StartResume startResume = new StartResume(new MatrixPosition(3, WorldCols + 4));

            engine.AddObject(startResume);

            Exit exit = new Exit(new MatrixPosition(5, WorldCols + 4));

            engine.AddObject(exit); //implement goodbye message (exception?)
        }
コード例 #2
0
        private static void BuildMenu(Engine engine)
        {
            Cursor cursor = new Cursor(new MatrixPosition(3, WorldCols + 1));

            engine.AddObject(cursor);

            StartResume startResume = new StartResume(new MatrixPosition(3, WorldCols + 4));

            engine.AddObject(startResume);

            Exit exit = new Exit(new MatrixPosition(5, WorldCols + 4));

            engine.AddObject(exit);

            Score score = new Score(new MatrixPosition(WorldRows - 2, WorldCols + 4), "Score:");

            engine.AddObject(score);

            Lifes lifes = new Lifes(new MatrixPosition(WorldRows - 4, WorldCols + 4), "Lifes:");

            engine.AddObject(lifes);
        }