bool visibility = new bool();   // Set initial value to false


        #endregion

        #region Constructor

        public Platform(PlatpormContent platformTexture, Vector2 position)
        {
            this.platformTexture = platformTexture;
            this.position        = position;

            if (isVisible())
            {
                visibility = true;
            }
        }
Example #2
0
        protected override void Initialize()
        {
            platformContent = new PlatpormContent();

            platformList = new PlatformList(platformContent);

            platformList.AddPlatform(new Vector2(100, GameConstants.WindowHeight - 100));
            platformList.AddPlatform(new Vector2(400, GameConstants.WindowHeight - 200));

            droid = new Player(new Vector2(GameConstants.WindowWidth / 2, GameConstants.WindowHeight - 100), 5, platformList);

            base.Initialize();
        }
 public PlatformList(PlatpormContent platformContent)
 {
     this.platformContent = platformContent;
     platformList         = new List <Platform>();
 }