Facebook
From ja, 3 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 159
  1. protected override void LoadContent()
  2.         {
  3.             // Create a new SpriteBatch, which can be used to draw textures.
  4.             spriteBatch = new SpriteBatch(GraphicsDevice);
  5.  
  6.             // TODO: use this.Content to load your game content here
  7.             tlo = this.Content.Load<Texture2D>("niebo");
  8.             rakieta = this.Content.Load<Texture2D>("AnimRakiety");
  9.             control = this.Content.Load<Texture2D>("control");
  10.             meteor = this.Content.Load<Texture2D>("meteor");
  11.             pos = new Vector2(210, 470);
  12.             nrKlatki = 0;
  13.             nrKlatkiM = 0;
  14.             ileCykli = 0;                      
  15.             kometa = new Meteor(meteor);  // kometa 1
  16.             kometa2 = new Meteor(meteor);  // kometa 2
  17.             gracz = new Rakieta(rakieta);  // gracz
  18.  
  19.  
  20.  
  21.         }