示例#1
0
        public void update(Core.Input.TgcD3dInput input)
        {
            var moveVector = TGCVector3.Empty;

            if (input.keyDown(Key.B))
            {
                moveVector += new TGCVector3(0, 7, 0);
                if (!volar)
                {
                    despegar();
                }
            }
            if (input.keyDown(Key.N))
            {
                moveVector += new TGCVector3(-17, 0, 0);
            }
            if (input.keyDown(Key.M))
            {
                moveVector += new TGCVector3(0, 0, -17);
            }

            helicoptero.Position = helicoptero.Position + moveVector;
            helice.Position      = helicoptero.Position + moveVector;

            if (volar)
            {
                helice.RotateY(1);
            }
        }
 public Simbolo(string MediaDir, string texture, TgcD3dInput input)
 {
     spritePrincipal     = new CustomBitmap(MediaDir + "XWing\\Textures\\" + texture, D3DDevice.Instance.Device);
     this.input          = input;
     spriteActual.Bitmap = spritePrincipal;
 }
示例#3
0
 public MenuObject(TgcD3dInput Input)
 {
     this.Input = Input;
 }