Esempio n. 1
0
 public Projectil(int id)
 {
     projectile = new Box(2.0f, 0.5f, 1.0f);
     translateX = 6.34f;
     translateY = 0.16f;
     translateZ = -0.88f;
     this.id = id;
 }
Esempio 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();
        }