Example #1
0
 public Player(Game game, World world)
     : base(game)
 {
     this.world = world;
     myDrawable = new MyDrawable(game);
     // TODO: Construct any child components here;
 }
Example #2
0
        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            //nextSpace is null because player has not yet selected a square
            nextSpace = null;
            myDrawable = new MyDrawable(Game, Color.PaleVioletRed, location, new Vector3(11, 11, 11));

            base.Initialize();
        }
Example #3
0
 /// <summary>
 /// Allows the game component to perform any initialization it needs to before starting
 /// to run.  This is where it can query for any required services and load content.
 /// </summary>
 public override void Initialize()
 {
     // TODO: Add your initialization code here
     taken = false;
     myDrawable = new MyDrawable(Game, Color.ForestGreen, this.position, this.size);
     base.Initialize();
 }