Example #1
0
        public LLEEnemy(string name, int hp, Vector2 position, Assets assets)
        {
            mName = name;

            mHP = hp;

            mSprite = new LLESprite(position.X, position.Y, 0, 0, 0);

            mSprite.setTexture(assets.getTexture(mName));

            mSprite.setTextureName(mName);
        }
Example #2
0
        public virtual LLESprite clone()
        {
            LLESprite theSprite = new LLESprite(mX, mY, mXVel, mYVel, mSpeed);

            theSprite.setTexture(mTexture);

            theSprite.setTextureName(mTextureName);

            theSprite.setWidth(mW);

            theSprite.setHeight(mH);

            theSprite.setRotation(mRotation);

            theSprite.setRotationSpeed(mRotationSpeed);

            theSprite.setTextureColor(mTextureColor);

            theSprite.setVisible(mVisible);

            return theSprite;
        }