Exemple #1
0
 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);
 }
Exemple #2
0
 public background(Game1 game)
 {
     camera = new camera(game);
     //graphics = new GraphicsDeviceManager(this);
     //Content.RootDirectory = "Content";
 }
Exemple #3
0
 public coin(Game1 game, Vector2 poscoin)
 {
     cam          = new camera(game);
     this.poscoin = poscoin;
     //player = new player(game,"");
 }