Exemple #1
0
 /// <summary>
 /// The constructor
 /// </summary>
 /// <param name="sprite">The image which represents the sprite</param>
 /// <param name="posX">The start cell on the X cordinate</param>
 /// <param name="posY">The start cell on the Y cordinate</param>
 /// <param name="width">How many cells it takes up in terms of width</param>
 /// <param name="height">How many cells it takes up in termd of height</param>
 /// <param name="collidable">Wether or not it collides with other objects</param>
 public Sprite(String identifier, SpiritForce.TheWorld.Animation animation, int posX, int posY, int width, int height, bool collidable)
 {
     this.identifier = identifier;
     this.animation = animation;
     this.posX = posX;
     this.posY = posY;
     this.width = width;
     this.height = height;
     this.collidable = collidable;
 }
Exemple #2
0
 public void setAnimation(SpiritForce.TheWorld.Animation animation)
 {
     this.animation = animation;
 }