Ejemplo n.º 1
0
        public Player(GameCore game, Dictionary<PlayerState, MyTexture2D> textures, Room startRoom, Dictionary<Direction, Keys> controls, PlayerIndex myIndex)
            : base(game)
        {
            this.myIndex = myIndex;
            this.controls = controls;
            _game = game;
            _textures = textures;

            Position = startRoom.SpawnPosition;
            currentRoom = startRoom;
            startRoom.PlayerEnters ();

            Visible = true;
            Enabled = true;
            game.Components.Add (this);

            DrawOrder = 200;
        }