Exemple #1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            //Main Character
            #region Main character

            LeftGod       = Content.Load <Texture2D>("MaincharacterLeft");
            maincharacter = new Yahweh(playerRec, LeftGod, playerColor, true, 5);
            #endregion
            //bullet picture
            bulletpic = Content.Load <Texture2D>("bullet");

            mushiPic = this.Content.Load <Texture2D>("mushi");
            Addenemy();
        }
Exemple #2
0
        public void MoveTowardsYaweh(Yahweh player)
        {
            if (yawehrec.X > player.getRec().X)
            {
                yawehrec.X -= 1;
            }
            if (yawehrec.X < player.getRec().X)
            {
                yawehrec.X += 1;
            }

            if (yawehrec.Y > player.getRec().Y)
            {
                yawehrec.Y -= 1;
            }

            if (yawehrec.Y < player.getRec().Y)
            {
                yawehrec.Y += 1;
            }
        }