Beispiel #1
0
 public MultiPlayer(Level level, int randomSeed, StatsTracker stats, GameListener listener)
 {
     this.stats = stats;
     this.listener = listener;
     one = new SinglePlayer(PlayerIndex.One, level, new Random(randomSeed), false, this);
     two = new SinglePlayer(PlayerIndex.Two, level, new Random(randomSeed), false, this);
 }
Beispiel #2
0
        public MisterTokenGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            stats = new StatsTracker();

            titleMenu = new Menu2(true, true, delegate() { SaveAndQuit(); });
            videoMenu = new Menu2(true, true, delegate() { state = State.TITLE_MENU; });
            musicMenu = new Menu2(true, true, delegate() { state = State.TITLE_MENU; });
        }