Ejemplo n.º 1
0
        public void Initialize(Animation animation, Vector2 position)
        {
            enemyAnimation = animation;

            Position = position;

            Active = true;

            Damage = 10;

            enemyMoveSpeed = 3f;

            Value = 100;
        }
Ejemplo n.º 2
0
        private void AddWater()
        {
            Animation enemyAnimation = new Animation();
            enemyAnimation.Initialize(WaterTexture, Vector2.Zero, 47, 61, 8, 30, Color.White, 1f, true);

            Vector2 position = new Vector2(200, 200);

            Water enemy = new Water();

            enemy.Initialize(enemyAnimation, position);

            WaterList.Add(enemy);
        }
Ejemplo n.º 3
0
        private void AddTreats()
        {
            Animation enemyAnimation = new Animation();
            enemyAnimation.Initialize(FoodTexture, Vector2.Zero, 47, 61, 8, 30, Color.White, 1f, true);

            Vector2 position = new Vector2(200, 200);

            Treats enemy = new Treats();

            enemy.Initialize(enemyAnimation, position);

            TreatLists.Add(enemy);
        }