public void LoadContent(ContentManager content) { jump = new BasicAnimatedSprite(pos); hit = new BasicAnimatedSprite(pos); kick = new BasicAnimatedSprite(pos); runRight = new BasicAnimatedSprite(pos); jump.LoadContent(content, "Andy/Jump", "Jump_f", 3); hit.LoadContent(content, "Andy/Hit", "Hit_f", 2); kick.LoadContent(content, "Andy/Duck", "Duck_f", 5); runRight.LoadContent(content, "Andy/RunRight", "run_f", 5); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; size = 100; pSize = 50; sW = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; sH = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; rand = new Random(); BasicAnimatedSprite.SetWindoeSize(new Rectangle(0, 0, sW, sH)); }