Exemplo n.º 1
0
        public Beer()
        {
            b = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/Beer.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.FromArgb(255, 0, 255));
            b1 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/Beer2.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.FromArgb(255, 0, 255));
            b2 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/Beer3.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.FromArgb(255, 0, 255));
            b3 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/Loka.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.FromArgb(255, 0, 255));

            fw = new FireWorks [4];
            fw[0] = new FireWorks(b);
            fw[1] = new FireWorks(b1);
            fw[2] = new FireWorks(b2);
            fw[3] = new FireWorks(b3);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor for Fireworks
        /// </summary>
        public MoreFireWorks()
        {
            fw1 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/part1.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.Black);
            fw2 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/part2.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.Black);
            fw3 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/part3.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.Black);
            fw4 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/part4.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.Black);
            fw5 = Util.LoadTexture(Util.CurrentExecutionPath + "/gfx/part5.bmp", TextureMinFilter.Linear, TextureMagFilter.Linear, TextureWrapMode.Clamp, TextureWrapMode.Clamp, System.Drawing.Color.Black);

            fw = new FireWorks[5];
            fw[0] = new FireWorks(fw1);
            fw[1] = new FireWorks(fw2);
            fw[2] = new FireWorks(fw3);
            fw[3] = new FireWorks(fw4);
            fw[4] = new FireWorks(fw5);
        }