Ejemplo n.º 1
0
        public MainScene(int width, int height)
        {
            this.width  = width;
            this.height = height;

            tank = new Tank();

            font = new OutlineFont("Verdana", 14, 0.2f, true, false, false, false);

            wall  = new Box(16.0f, 4.0f, 1.0f);
            wall2 = new Box(16.0f, 4.0f, 1.0f);
            wall3 = new Box(16.0f, 4.0f, 1.0f);

            textureId = new int[textureCount];

            this.Init(0.2f, 0.2f, 0.2f, 1.0f);

            shipModel = new Ship(textureId[(int)TextureObjects.Metal]);



            this.Resize();
        }
Ejemplo n.º 2
0
        public MainScene(int width, int height)
        {

            this.width = width;
            this.height = height;

            tank = new Tank();

            font = new OutlineFont("Verdana", 14, 0.2f, true, false, false, false);

            wall = new Box(16.0f, 4.0f, 1.0f);
            wall2 = new Box(16.0f, 4.0f, 1.0f);
            wall3 = new Box(16.0f, 4.0f, 1.0f);

            textureId = new int[textureCount];

            this.Init(0.2f, 0.2f, 0.2f, 1.0f);

            shipModel = new Ship(textureId[(int)TextureObjects.Metal]);



            this.Resize();
        }