Inheritance: MonoBehaviour
        public void LoadMapProperties()
        {
            MapName         = MapName;
            ChosenTileSight = ChosenTileSight;
            ChosenCharSight = ChosenCharSight;
            NoRescue        = NoRescue;
            NoSwitch        = NoSwitch;
            ChosenElement   = ChosenElement;
            ChosenScroll    = ChosenScroll;

            BG.LoadFromSource(ZoneManager.Instance.CurrentMap.Background);
            BlankBG.LoadFromSource(ZoneManager.Instance.CurrentMap.BlankBG);
            TextureMap.LoadFromDict(ZoneManager.Instance.CurrentMap.TextureMap);

            bool foundSong = false;

            for (int ii = 0; ii < Music.Count; ii++)
            {
                string song = Music[ii];
                if (song == ZoneManager.Instance.CurrentMap.Music)
                {
                    ChosenMusic = ii;
                    foundSong   = true;
                    break;
                }
            }
            if (!foundSong)
            {
                ChosenMusic = -1;
            }
        }
    void ShowBG()
    {
        if (countBgChange > 3)
        {
            countBgChange = 0;
            usedBgNum     = "";
        }

        int rndBG = 0;

        foreach (var BG in BGs)
        {
            BG.SetActive(false);
        }

        while (true)
        {
            rndBG = Random.Range(0, BGs.Length);

            if (!usedBgNum.Contains(rndBG.ToString()))
            {
                usedBgNum += rndBG.ToString();
                break;
            }
        }
        BGs[rndBG].SetActive(true);
        countBgChange++;
    }
Exemplo n.º 3
0
    void CreateGameSetupTxt()
    {
        string path    = "C:/xampp/tmp/" + WorldName + " Setup.csv";
        string content = BG.ToString() + "\n" + Boss.ToString() + "\n" + BossHP.ToString();

        File.WriteAllText(path, content);
    }
        public void LoadMapProperties()
        {
            MapName      = MapName;
            ChosenScroll = ChosenScroll;
            NoSwitch     = NoSwitch;

            BG.LoadFromSource(ZoneManager.Instance.CurrentGround.Background);
            BlankBG.LoadFromSource(ZoneManager.Instance.CurrentGround.BlankBG);

            bool foundSong = false;

            for (int ii = 0; ii < Music.Count; ii++)
            {
                string song = Music[ii];
                if (song == ZoneManager.Instance.CurrentGround.Music)
                {
                    ChosenMusic = ii;
                    foundSong   = true;
                    break;
                }
            }
            if (!foundSong)
            {
                ChosenMusic = -1;
            }
        }
Exemplo n.º 5
0
        public override void AssignPiratesToParticipants(List <Pirate> pirates)
        {
            Carrier          carrier    = new Carrier(this.Participants);
            List <BodyGuard> bodyguards = new List <BodyGuard>();

            foreach (Pirate pirate in pirates)
            {
                if (pirate.HasCapsule() && carrier.Pirate == null)
                {
                    carrier.Pirate = pirate;
                }
                else
                {
                    bodyguards.Add(new BodyGuard(pirate));
                }
            }


            List <ICommand> list = new List <ICommand>();

            if (carrier.Pirate != null)
            {
                list.Add(carrier);
            }
            foreach (BodyGuard BG in bodyguards)
            {
                if (carrier.Pirate != null)
                {
                    BG.assignCarrier(carrier);
                }
                list.Add(BG);
            }
            this.Participants = list;
        }
Exemplo n.º 6
0
        private void OnEnable()
        {
            this.maxSize = new Vector2(600, 600);

            XmlDocument doc  = new XmlDocument();
            string      path = "Assets/Examples/GUIGames/BWC/Editor/Game_BWC.xml";

            doc.Load(path);
            guiCanvas = new GUICanvas();
            guiCanvas.DeSerialize(doc.DocumentElement);
            WC      = Resources.Load <Texture2D>("bai");
            BC      = Resources.Load <Texture2D>("hei");
            map     = new Map(guiCanvas.Find <Area>("map"));
            wCount  = guiCanvas.Find <Label>("top/count/w/count");
            bCount  = guiCanvas.Find <Label>("top/count/b/count");
            jiesuan = guiCanvas.Find <ImageArea>("jiesuan");


            GameObject go = new GameObject("BG");

            go.hideFlags = HideFlags.DontSave | HideFlags.HideInHierarchy;
            BG           = go.AddComponent <AudioSource>();
            BG.clip      = Resources.Load <AudioClip>("BG");
            BG.Play();
            BG.loop = true;

            go           = new GameObject("sound");
            go.hideFlags = HideFlags.DontSave | HideFlags.HideInHierarchy;
            Sound        = go.AddComponent <AudioSource>();
        }
Exemplo n.º 7
0
        public PassWordEnterF7()
        {
            InitializeComponent();

            BG.BeginInit();
            BG.Source = baseColora.Bgpa;
            BG.EndInit();
            this.Background = baseColora.Tran;
            WindowXCaption.SetHeight(this, 0);

            this.Time.Background = baseColora.DBg;
            this.Time.Foreground = baseColora.Main;
            ProgressBarHelper.SetCornerRadius(Time, 0);
            Border.Background = baseColora.DBg;

            this.Password.Background = baseColora.DBg;
            this.Password.Foreground = baseColora.Fg;

            ButtonHelper.SetHoverBrush(B1, baseColora.Tran);
            this.B1.Background = baseColora.Tran;

            Timer timer = new Timer();

            timer          = new Timer(1000);
            timer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            timer.Enabled  = true;
        }
Exemplo n.º 8
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            elapsed += (double)timer1.Interval / 1000.0;
            if (!loads && elapsed >= DURATION)
            {
                if (elapsed >= (Granted ? DURATION : MAXDURATION))
                {
                    kill();
                    return;
                }
            }

            SendMessage(BG.Handle, WM_SETREDRAW, false, 0);
            SendMessage(FG.Handle, WM_SETREDRAW, false, 0);
            double percent = (elapsed / (Granted ? DURATION : MAXDURATION));

            if (!loads)
            {
                Opacity = Math.Min(1, 4 - (percent * 4));
                if (Opacity < 0.001)
                {
                    Visible = false;
                }
            }

            int Move = (int)(BackMargin * percent) % 218;

            BG.Location = new Point(0, Move);
            FG.Location = new Point(0, -Move);
            SendMessage(BG.Handle, WM_SETREDRAW, true, 0);
            SendMessage(FG.Handle, WM_SETREDRAW, true, 0);
            BG.Invalidate();
            FG.Invalidate();
        }
Exemplo n.º 9
0
        public Updater()
        {
            InitializeComponent();

            BG.BeginInit();
            BG.Source = baseColora.Bgpa;
            BG.EndInit();
            this.Background = baseColora.Tran;
            WindowXCaption.SetHeight(this, 0);

            this.MT1.Foreground = baseColora.Fg;
            this.MT1.FontFamily = baseColora.Fonts;
            this.MT1.FontSize   = 15;

            this.T1.Foreground = baseColora.Fg;
            this.T1.FontFamily = baseColora.Fonts;
            this.T1.FontSize   = 13;
            this.T2.Foreground = baseColora.Fg;
            this.T2.FontFamily = baseColora.Fonts;
            this.T2.FontSize   = 13;

            this.ICON.Foreground = baseColora.Fg;
            ButtonHelper.SetHoverBrush(ICON, baseColora.Fg);

            this.pbDown.Background = baseColora.DBg;
            this.pbDown.Foreground = baseColora.Main;
            ProgressBarHelper.SetCornerRadius(pbDown, 0);

            Thread thread = new Thread(Start);

            thread.Start();
        }
Exemplo n.º 10
0
    public void OnBackground()
    {
        GameData.Instance._char.OnChar(-1);
        GameData.Instance._ui.CloseBottom();

        if (_bg_now != null)
        {
            Destroy(_bg_now.gameObject);
        }



        if (_map < 0)
        {
            if (!GameData.Instance._event._event_bgm)
            {
                GameData.Instance._sound.Stop_BGMSound();
            }
        }
        else
        {
            _bg_now = Instantiate(_bg[_map], _bg_parent);

            _bg_now.transform.localPosition = Vector3.zero;
            _bg_now.transform.localScale    = Vector3.one;

            _bg_now.OnSet(_map);

            if (!GameData.Instance._event._event_bgm)
            {
                GameData.Instance._sound.Play_BGMSound(GameData.Instance._map[_map]._bgm);
            }
        }
    }
 void Start()
 {
     GetColorsForCurrentStage();
     CreateStageMesh(World.instance.GetStageCenter(), World.instance.stageSize);
     BG.StopMatchIntro();
     Debug.Log("[LLBMM] StageVisualHandler: Created");
 }
Exemplo n.º 12
0
        public void Draw()
        {
            BG.Draw();
            Road.Draw();
            Obstacles.ForEach(o => o.Draw());
            Player.Draw();

            Foreground.Draw();

            if (Paused && !lost)
            {
                Util.DrawText("Press SPACE to jump!", new Vector2(150, 20));
            }

            if (lost)
            {
                if (highScore)
                {
                    Util.DrawText("NEW HIGH SCORE: " + score.ToString(), new Vector2(150, 20));
                }
                else
                {
                    Util.DrawText("Final score: " + score.ToString(), new Vector2(150, 20));
                }
            }

            DrawScore();
        }
Exemplo n.º 13
0
 private void ScrollingBG()
 {
     foreach (Entities.CarLvlBackground BG in entitys)
     {
         //BG.setPosX(1f);
         BG.Update();
     }
 }
    public void ChangeBackground(int val)
    {
        foreach (GameObject BG in elements)
        {
            BG.SetActive(false);
        }

        elements[val].SetActive(true);
    }
Exemplo n.º 15
0
    IEnumerator x(bool value)
    {
        yield return(new WaitForSeconds(1f));

        excersises[count].SetActive(false);
        if (value)
        {
            player.GetComponent <Animator>().SetBool("x", true);
            movePlayer = true;
            moveBG     = true;
            target     = new Vector2(BG.GetComponent <RectTransform>().anchoredPosition.x - 300, BG.GetComponent <RectTransform>().anchoredPosition.y - 300);
            if (count < excersises.Count)
            {
                points[count].GetComponent <Image>().sprite = points[count].GetComponent <BehaviourSprite>()._right;
                count_2++;
            }
        }
        else
        {
            if (count < excersises.Count)
            {
                points[count].GetComponent <Image>().sprite = points[count].GetComponent <BehaviourSprite>()._wrong;
            }
        }
        count++;

        yield return(new WaitForSeconds(1f));

        if (count < excersises.Count)
        {
            excersises[count].SetActive(true);
        }

        if (count == excersises.Count)
        {
            //StartCoroutine(po());
            yield return(new WaitForSeconds(0.5f));

            if (count == controlPuntaje._rightAnswers)
            {
                bandera.SetActive(true);
                yield return(new WaitForSeconds(1f));

                bandera.SetActive(false);
                drags[0].SetActive(true);
                monta.SetActive(false);
            }
            else
            {
                yield return(new WaitForSeconds(1f));

                drags[0].SetActive(true);
                monta.SetActive(false);
            }
        }
    }
Exemplo n.º 16
0
 public void resumen_1()
 {
     print("resume_1");
     BG.SetActive(false);
     desempeño.GetComponent <Button>().interactable = false;
     canMove = false;
     resumen1.GetComponent <Button>().interactable = false;
     resumen2.GetComponent <Button>().interactable = false;
     pause.GetComponent <Button>().interactable    = true;
 }
Exemplo n.º 17
0
 //绘制游戏对象
 public void Draw(Graphics g)
 {
     BG.Draw(g);
     life.Draw(g);
     list_UI.Draw(g);
     if (boss_UI != null)
     {
         boss_UI.Draw(g);
     }
 }
Exemplo n.º 18
0
        /// <summary>
        /// Gets the correct BaseFile class by comparing the file with the known header signatures.
        /// </summary>
        /// <param name="filePath">Filepath</param>
        /// <returns></returns>
        public static BaseFile GetTypeFromFile(string filePath)
        {
            byte[] buffer;
            using (BinaryReader reader = new BinaryReader(new FileStream(filePath, FileMode.Open)))
            {
                if (reader.BaseStream.Length < 256)
                {
                    buffer = new byte[reader.BaseStream.Length];
                    reader.Read(buffer, 0, buffer.Length);
                }
                else
                {
                    buffer = new byte[256];
                    reader.Read(buffer, 0, 256);
                }
            }

            if (BG.Compare(buffer))
            {
                return(new BGFile(filePath));
            }
            if (LZB.Compare(buffer))
            {
                return(new LZBFile(filePath));
            }
            if (PACK.Compare(buffer))
            {
                return(new PBFile(filePath));
            }
            if (SEQ.Compare(buffer))
            {
                return(new SEQFile(filePath));
            }
            if (STR.Compare(filePath))
            {
                return(new STRFile(filePath));
            }
            if (TIM.Compare(buffer))
            {
                return(new TIMFile(filePath));
            }
            if (VB.Compare(buffer))
            {
                return(new VBFile(filePath));
            }
            if (VH.Compare(buffer))
            {
                return(new VHFile(filePath));
            }
            if (XA.Compare(filePath))
            {
                return(new XAFile(filePath));
            }
            return(new BaseFile(filePath));
        }
Exemplo n.º 19
0
        public void Update()
        {
            Input.Update();

            Camera.Update();

            if (Input.Jump())
            {
                if (Paused)
                {
                    Reset();
                }
                else
                {
                    if (Player.Jump())
                    {
                        JumpSound.Play();
                    }
                }
            }

            if (Paused)
            {
                return;
            }

            BG.Update();
            Road.Update();
            Foreground.Update();

            for (int i = 0; i < Obstacles.Count; i++)
            {
                Obstacles[i].Update();
                if (!Obstacles[i].Active)
                {
                    Obstacles.RemoveAt(i--);
                    score++;
                    Coin.Play();
                }
            }

            Player.Update();

            if (counter++ >= 60)
            {
                AddObstacle();
                counter = 0;
            }

            if (CheckCollisions())
            {
                Die();
            }
        }
Exemplo n.º 20
0
        public void Update(GameTime GameTime, GraphicsDevice Graphics, Hero Hero)
        {
            KeyboardState Current = Keyboard.GetState();

            if (!Current.IsKeyDown(Keys.Right) && !Current.IsKeyDown(Keys.Left))
            {
                Speed     = Vector2.Zero;
                Direction = Vector2.Zero;
            }

            #region Right Movement
            if (Hero.SpritePosition.X < Graphics.Viewport.Width / 2)
            {
                if (Current.IsKeyDown(Keys.Left))
                {
                    Speed.X     = BG_SPEED;
                    Direction.X = MOVE_RIGHT;
                }
            }
            #endregion
            #region Left Movement
            if (Hero.SpritePosition.X > Graphics.Viewport.Width / 4)
            {
                if (Current.IsKeyDown(Keys.Right))
                {
                    Speed.X     = BG_SPEED;
                    Direction.X = MOVE_LEFT;
                }
            }
            #endregion
            #region Later Code

            /*if (true)
             * {
             *  foreach (Sprite BG in VerticalList)
             *  {
             *      BG.Update(GameTime, Speed, Direction);
             *  }
             * }
             * if (true)
             * {
             *  foreach (Sprite BG in VerticalList)
             *  {
             *      BG.Update(GameTime, Speed, Direction);
             *  }
             * }*/

            #endregion

            foreach (Sprite BG in HorizontalList)
            {
                BG.Update(GameTime, Speed, Direction);
            }
        }
Exemplo n.º 21
0
        private void cmdCompile_Click(object sender, EventArgs e)
        {
            cmdStop.Enabled       = true;
            panelSettings.Enabled = false;
            Package.Outputfile    = txtOutputFilename.Text.Trim();
            PKGCompilerArgs comp = new PKGCompilerArgs();

            comp.SignCert     = lstCert.Text;
            comp.SignLocation = StoreLocation.CurrentUser;
            comp.SignExtCert  = lstExtSign.Text;
            comp.UseExtSign   = radExtSign.Checked;
            BG.RunWorkerAsync(comp);
        }
Exemplo n.º 22
0
        public IEnumerable <Chromium.Cookie> GetAllChromiumCookies()
        {
            List <Chromium.Cookie> cookies = new List <Chromium.Cookie>();

            // Add Cookies to list:
            cookies.AddRange(CG.GetCookies());
            cookies.AddRange(BG.GetCookies());
            cookies.AddRange(VG.GetCookies());
            cookies.AddRange(OG.GetCookies());
            cookies.AddRange(OGG.GetCookies());
            cookies.AddRange(EG.GetCookies());

            return(cookies);
        }
Exemplo n.º 23
0
        public IEnumerable <Chromium.Cookie> GetAllChromiumCookiesBy(Chromium.CookieHeader by, object value)
        {
            List <Chromium.Cookie> cookies = new List <Chromium.Cookie>();

            // Add Cookies to list:
            cookies.AddRange(CG.GetCookiesBy(by, value));
            cookies.AddRange(BG.GetCookiesBy(by, value));
            cookies.AddRange(VG.GetCookiesBy(by, value));
            cookies.AddRange(OG.GetCookiesBy(by, value));
            cookies.AddRange(OGG.GetCookiesBy(by, value));
            cookies.AddRange(EG.GetCookiesBy(by, value));

            return(cookies);
        }
Exemplo n.º 24
0
        public IEnumerable <Chromium.Login> GetAllChromiumLogins()
        {
            List <Chromium.Login> logins = new List <Chromium.Login>();

            // Add Logins to list:
            logins.AddRange(CG.GetLogins());
            logins.AddRange(BG.GetLogins());
            logins.AddRange(VG.GetLogins());
            logins.AddRange(OG.GetLogins());
            logins.AddRange(OGG.GetLogins());
            logins.AddRange(EG.GetLogins());

            return(logins);
        }
Exemplo n.º 25
0
        public IEnumerable <Chromium.Login> GetAllChromiumLoginsBy(Chromium.LoginHeader by, object value)
        {
            List <Chromium.Login> logins = new List <Chromium.Login>();

            // Add Logins to list:
            logins.AddRange(CG.GetLoginsBy(by, value));
            logins.AddRange(BG.GetLoginsBy(by, value));
            logins.AddRange(VG.GetLoginsBy(by, value));
            logins.AddRange(OG.GetLoginsBy(by, value));
            logins.AddRange(OGG.GetLoginsBy(by, value));
            logins.AddRange(EG.GetLoginsBy(by, value));

            return(logins);
        }
Exemplo n.º 26
0
    void CreateGameSetupTxt()
    {
        string path    = "C:/xampp/tmp/" + WorldName + " " + UniqueCode + " Setup.csv";
        string content = BG.ToString() + "\n" + Boss.ToString() + "\n" + BossHP.ToString();

        if (File.Exists(path))
        {
            File.AppendAllText(path, content);
        }
        else
        {
            File.WriteAllText(path, content);
        }
    }
Exemplo n.º 27
0
        public void Draw(SpriteBatch SBatch)
        {
            foreach (Sprite BG in HorizontalList)
            {
                BG.Draw(SBatch);
            }
            #region LaterCode

            /*foreach (Sprite BG in VerticalList)
             * {
             *  BG.Draw(SBatch);
             * }*/

            #endregion
        }
Exemplo n.º 28
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.tag == "enemyGround")
        {
            anim.SetBool("isDeath", true);
            terrain.GetComponent <Animator>().enabled = false;
            awan.SetActive(false);
            enemyGroundSpawn.GetComponent <spawnerEnemyGround>().gameOver = true;
            enemyAirSpawn.GetComponent <SpawnEnemyAir>().gameOverr        = true;

            gameOverText.SetActive(true);
            restartButton.SetActive(true);
            mainMenuButton.SetActive(true);

            jumpButton.SetActive(false);
            nundukButton.SetActive(false);

            for (int i = 0; i < enemyGroundSpawn.transform.childCount; i++)
            {
                enemyGroundSpawn.transform.GetChild(i).GetComponent <EnemyMove>().moveSpeed = 0;
            }

            for (int i = 0; i < enemyAirSpawn.transform.childCount; i++)
            {
                enemyAirSpawn.transform.GetChild(i).GetComponent <EnemyAir>().moveAir = 0;
            }

            if (PlayerPrefs.GetInt("highscore") < scoreValue)
            {
                PlayerPrefs.SetInt("highscore", scoreValue);
            }

            deathSound.Play();
            ketawa.Play();
            terentod.Play();
            BG.Stop();
        }

        if (collision.gameObject.tag == "scoreNambah")
        {
            if (!gameOverText.activeSelf)
            {
                scoreValue += 1;
                score.GetComponent <Text>().text = "" + scoreValue.ToString();
            }
        }
    }
Exemplo n.º 29
0
 public ScanningView(RectangleF frame)
     : base(frame)
 {
     if (App.Inst.IsIPad) {
         BGW = 1024;
     } else {
         BGW = 1024;
     }
     _bg = new ScanningView.BG (new RectangleF (-BGW, -BGW, 2 * BGW, 2 * BGW));
     AddSubview (_bg);
     var rw = Math.Min (frame.Width, frame.Height) / 2;
     _ret = new ScanningView.Reticle (new RectangleF ((float)(_rand.NextDouble () - 0.5) * frame.Width * 2, (float)(_rand.NextDouble () - 0.5) * frame.Height * 2, rw, rw));
     _ret.Alpha = 0.7f;
     ClipsToBounds = true;
     Layer.CornerRadius = 20;
     AddSubview (_ret);
 }
Exemplo n.º 30
0
        public SSMessageBox()
        {
            InitializeComponent();

            SSMessageHelper.buttonOK = false;
            SSMessageHelper.buttonNO = false;

            BG.BeginInit();
            BG.Source = baseColora.Bgpa;
            BG.EndInit();
            this.Background   = baseColora.Tran;
            Border.Background = baseColora.DBg;
            WindowXCaption.SetHeight(this, 0);

            this.ICON.Foreground = baseColora.Fg;
            ButtonHelper.SetHoverBrush(ICON, baseColora.Fg);
            ButtonHelper.SetIcon(ICON, ButtonHelper.GetIcon(SSMessageHelper.Icon));
            this.OK.Content    = SSMessageHelper.bOKtext;
            this.OK.Foreground = baseColora.Fg;
            this.OK.Background = baseColora.Bg;
            ButtonHelper.SetHoverBrush(OK, baseColora.Main);
            ButtonHelper.SetCornerRadius(OK, new CornerRadius(3, 3, 3, 3));
            this.CANC.Content    = SSMessageHelper.bNOtext;
            this.CANC.Foreground = baseColora.Fg;
            this.CANC.Background = baseColora.Bg;
            ButtonHelper.SetHoverBrush(CANC, baseColora.Main);
            ButtonHelper.SetCornerRadius(CANC, new CornerRadius(3, 3, 3, 3));

            this.TITLE.Text       = SSMessageHelper.Title;
            this.TITLE.Foreground = baseColora.Fg;
            this.TITLE.Background = baseColora.Tran;
            this.TITLE.FontFamily = baseColora.Fonts;
            this.TITLE.FontSize   = 25;

            this.SAY.Text       = "       " + SSMessageHelper.Says;
            this.SAY.Foreground = baseColora.Fg;
            this.SAY.Background = baseColora.Tran;
            this.SAY.FontFamily = baseColora.Fonts;
            this.SAY.FontSize   = 16;

            if (SSMessageHelper.noNo)
            {
                this.CANC.Visibility = Visibility.Collapsed;
            }
        }
Exemplo n.º 31
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            spriteBatch.Begin();

            // All the sprites
            BG.Draw(spriteBatch, this.Content);
            if (MyGameControl.GameState == GameControl.Gstate.Game)
            {
                CurrentRoom.DrawRoom(spriteBatch, this.Content);
                //Door.Draw(spriteBatch, this.Content);
                MyGameControl.Draw(spriteBatch, this.Content);
                HUD1.DrawHUD(spriteBatch, this.Content);
                SettingsButton.Draw(spriteBatch, this.Content);

                if (CurrentRoom.getIntegerForm() == MyGameControl.MyMap.getWumpusRoom())
                {
                    MyGameControl.MyWumpus.Draw(spriteBatch, this.Content);
                }
            }
            else if (MyGameControl.GameState == GameControl.Gstate.Menu)
            {
                MyMenu.Draw(spriteBatch, this.Content);
            }

            // Debugging purposes: Text drawing
            DrawText();

            // And, of course, the cursor
            if (KBState.IsKeyDown(Keys.A))
            {
                CursorRight.AssetName = "ScreenPointers\\AnimatedCursor16";
                CursorRight.DrawAnimated(spriteBatch, this.Content);
            }
            else
            {
                CursorRight.AssetName = "ScreenPointers\\cursor2";
                CursorRight.Draw(spriteBatch, this.Content);
            }

            spriteBatch.End();
            base.Draw(gameTime);
        }