Example #1
0
        public override void Reset()
        {
            base.Reset();

            Direction = new DirectionInfo(GameComponents.Directions.Down, GameComponents.Directions.Down);

            State        = GhostState.Normal;
            MovementMode = GhostMovementMode.InHouse;
            SetMover(new GhostInsideHouseMover(this, _maze, CurrentPlayerStats.ghostHouseDoor));
        }
Example #2
0
        public SimpleGhost(GhostNickname nickName, Directions direction)
        {
            NickName  = nickName;
            Direction = new DirectionInfo(direction, direction);

            Visible = true;

            var spriteSheet = new GhostSpritesheet();

            SpritesheetInfoNormal      = spriteSheet.GetEntry(nickName);
            _spritesheetInfoFrightened = new GhostSpritesheet().GetFrightened();
            _spriteSheetEyes           = spriteSheet.Eyes;

            SpriteSheetPos = SpritesheetInfoNormal.GetSourcePosition(Direction.Next, true);
        }