Пример #1
0
        public void LoadContent(ContentManager p_content)
        {
            Texture2D text;

            if (GQuality == GameQuality.CLASSIC)
            {
                text = p_content.Load <Texture2D>(@"CLASSIC\vic");
                ship = new PlayerShip();
                ship.ClassicSetup(text, 99, 48);
                ship.Posicao = new Vector2(100, 360 - 24);
                enemyTexture = p_content.Load <Texture2D>(@"CLASSIC\enemy1");

                map = p_content.Load <Map>(@"TMX\volcano2");
            }
        }
Пример #2
0
        public void LoadContent(ContentManager p_content)
        {
            Texture2D   text;
            PotatoLayer layer = new PotatoLayer();


            if (GQuality == GameQuality.CLASSIC)
            {
                text = p_content.Load <Texture2D>(@"CLASSIC\vic2");
                ship = new PlayerShip(this);
                ship.ClassicSetup(text, 86, 48);
                ship.Posicao = new Vector2(100, 360 - 24);
                layer.AddEntity(ship);

                enemyTexture = p_content.Load <Texture2D>(@"CLASSIC\enemy1");

                map = p_content.Load <Map>(@"TMX\volcano2");
            }
            Layers.Add(layer);
            CriaInimigos();
        }