public Platform(Game1 game, Texture2D newTexture, Vector2 newPosition) { texture = newTexture; position = newPosition; camera = new camera(game); rectangle = new Rectangle((int)position.X, (int)position.Y, texture.Width, texture.Height); }
public background(Game1 game) { camera = new camera(game); //graphics = new GraphicsDeviceManager(this); //Content.RootDirectory = "Content"; }
public coin(Game1 game, Vector2 poscoin) { cam = new camera(game); this.poscoin = poscoin; //player = new player(game,""); }