/// <summary> /// Another simple sprite. /// </summary> /// <param name="textureName">Lets you specify the name of a texture to load.</param> /// <param name="behaviorType">Specify the behavior type.</param> /// <param name="newPos">Where the sprite will be on the screen.</param> public SimpleSprite(String textureName, constants.SIMPLE_SPRITE_BEHAVIOR behaviorType, Vector2 newPos) { myTextureName = textureName; myVelocity = new Vector2(constants.SIMPLE_SPRITE_SPEED, 0); myBehavior = behaviorType; globPos = new Rectangle((int)newPos.X, (int)newPos.Y, 0, 0); }
/// <summary> /// Another simple sprite. /// </summary> /// <param name="textureName">Texture for this sprite (the name of)</param> /// <param name="behaviorType">Lets you specify a behavior.</param> public SimpleSprite(String textureName, constants.SIMPLE_SPRITE_BEHAVIOR behaviorType) { myTextureName = textureName; myVelocity = new Vector2(constants.SIMPLE_SPRITE_SPEED, 0); myBehavior = behaviorType; }
/// <summary> /// Creates a simple sprite with the default "bouncing" beahvior. /// </summary> /// <param name="textureName">The name of the texture for this sprite.</param> public SimpleSprite(String textureName) { myTextureName = textureName; myVelocity = new Vector2(constants.SIMPLE_SPRITE_SPEED, 0); myBehavior = constants.SIMPLE_SPRITE_BEHAVIOR.BOUNCING; }