Пример #1
0
        public void Initialize()
        {
            mapView = new Rectangle(0, 0, 768, 720);
            PotatoLayer layer = new PotatoLayer();

            layer.AddEntity(ship);


            Layers.Add(layer);
            CriaInimigos();
        }
Пример #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();
        }