示例#1
0
 public CoinsInMode(UiSystem uiSystem)
 {
     _uiSystem = uiSystem;
     _display  = uiSystem.Display;
     _display.Blank();
     _scoreBoard = uiSystem.ScoreBoard;
 }
示例#2
0
        public TestMode(UiSystem uiSystem)
        {
            _display   = uiSystem.Display;
            _spriteSet = uiSystem.SpriteSet;
            _tick      = 0;

            _allSpites = new SpriteSource[10 * 32];
            for (int y = 0; y < 10; y++)
            {
                for (int x = 0; x < 32; x++)
                {
                    _allSpites[y * 32 + x] = new SpriteSource(x, y, 1);
                }
            }
        }
示例#3
0
        public AttractMode(UiSystem uiSystem)
        {
            _uiSystem   = uiSystem;
            _display    = uiSystem.Display;
            _spriteSet  = uiSystem.SpriteSet;
            _scoreBoard = uiSystem.ScoreBoard;
            _display.Blank();
            _attractTick = 0;

            _pacMan = new PacMan(new Location(_display.Width + 1, 20), Direction.Left);
            _ghosts = new[]
            {
                new Ghost(GhostColour.Red, new Location(_display.Width + 5, 20), Direction.Left),
                new Ghost(GhostColour.Pink, new Location(_display.Width + 7, 20), Direction.Left),
                new Ghost(GhostColour.Cyan, new Location(_display.Width + 9, 20), Direction.Left),
                new Ghost(GhostColour.Orange, new Location(_display.Width + 11, 20), Direction.Left)
            };
            _showPowerPill = true;
            _pointsCounter = 0;
            _points        = 0;
        }
示例#4
0
 public DemoMode(UiSystem uiSystem, GameSetup.LevelSetup levelSetup) : base(uiSystem, levelSetup, true)
 {
 }
示例#5
0
 public PlayMode(UiSystem uiSystem, GameSetup.LevelSetup levelSetup) : base(uiSystem, levelSetup, false)
 {
 }