Esempio n. 1
0
        private void addScudP2()
        {
            Scud scud;

            scud = new Scud(Window.ClientBounds.Width, Window.ClientBounds.Height, p2.Position.X - 25, p2.Position.Y + 26, 1, p2.rotation);
            scud.initialize();
            scud.loadContent(Content, "bullet_orange");
            listScud.Add(scud);
            fire2 = false;
            if (this.p2.getDoubleCanon())
            {
                scud = new Scud(Window.ClientBounds.Width, Window.ClientBounds.Height, p2.Position.X - 25, p2.Position.Y + 36, 1, p2.rotation);
                scud.initialize();
                scud.loadContent(Content, "bullet_orange");
                listScud.Add(scud);
            }
        }
Esempio n. 2
0
        private void addScudP1()
        {
            Scud            scud;

            scud = new Scud(Window.ClientBounds.Width, Window.ClientBounds.Height, p1.Position.X + 50, p1.Position.Y + 26, 0, p1.rotation);
            scud.initialize();
            scud.loadContent(Content, "bullet");
            listScud.Add(scud);
            fire1 = false;
            if (this.p1.getDoubleCanon())
            {
                scud = new Scud(Window.ClientBounds.Width, Window.ClientBounds.Height, p1.Position.X + 50, p1.Position.Y + 36, 0, p1.rotation);
                scud.initialize();
                scud.loadContent(Content, "bullet");
                listScud.Add(scud);
            }
        }