public AAnimate(SpriteSheet sp, EntityType type, string texture_path, float posx, float posy, float speed) : base(type, texture_path, posx, posy, speed) { sprite = sp; Width = sp.getWidth(); Height = sp.getHeight(); }
public AAnimate(EntityType type, string texture_path, int width, int height, float posx, float posy, float speed) : base(type, texture_path, posx, posy, speed) { Width = width; Height = height; sprite = new SpriteSheet(Defaults.MOUVEMENT_PHASE_MIDDLE, Defaults.MOUVEMENT_DIRECTION_DOWN, Width, Height); }