Esempio n. 1
0
 public Player(ContentManager content, RoomScene room, Game1 game)
 {
     this.content = content;
     this.room    = room;
     this.game    = game;
     X            = (int)room.StartPosition.X;
     Y            = (int)room.StartPosition.Y;
 }
Esempio n. 2
0
        protected override void Initialize()
        {
            base.Initialize();

            room = new RoomScene(Content);
            room.LoadMap();

            player = new Player(Content, room, this);

            gameState = GameState.Playing;
        }