protected override void LoadContent() { spaceConnect = new KeyHelper(Keys.Space, "CONNECT TO DUDE YUP"); enterkey = new KeyHelper(Keys.Enter, "ENTER N***A 3000"); u = new KeyHelper(Keys.Up, "UP"); d = new KeyHelper(Keys.Down, "DOWN"); l = new KeyHelper(Keys.Left, "LEFT"); r = new KeyHelper(Keys.Right, "RIGHT"); font = Content.Load <SpriteFont>("File"); spriteBatch = new SpriteBatch(GraphicsDevice); testTex = new CoolTexture( AnimType.Loop, Content.Load <Texture2D>("square"), new Rectangle[] { new Rectangle(0, 0, 80, 80), new Rectangle(80, 0, 80, 80), new Rectangle(0, 80, 160, 80), }, 3, 0.1f, new Point[] { new Point(40, 40), new Point(40, 40), new Point(80, 40) }, "lololol"); left = new PadHelper(Buttons.RightThumbstickLeft); right = new PadHelper(Buttons.RightThumbstickRight); player = new Entity(new Vector2(300, 300), new CoolTexture[1] { testTex }, 100, 0, 0, new Vector2(100, 10)); gaydude = new Entity(new Vector2(300, 300), new CoolTexture[1] { testTex }, 100, 0, 0, new Vector2(100, 10)); onlineHelper = new OnlineStuff(this); }
public Sprite(Vector2 a_pos, CoolTexture a_tex) { pos = a_pos; tex = a_tex; hb = new FRectangle(pos.X, pos.Y, a_tex.srcRects[a_tex.frameCounter - 1].Width, a_tex.srcRects[a_tex.frameCounter - 1].Height); }