protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
// Gracz
if (nrKlatki > 5) { nrKlatki = 0; } // animacja rakiety
int szerokośćKlatki = rakieta.Width / 6;
Rectangle klatka = new Rectangle(nrKlatki * szerokośćKlatki, 0, szerokośćKlatki, rakieta.Height);
//meteor
if (nrKlatkiM > 3) { nrKlatkiM = 0; } // klatki meteora, miał 3 tylko
int szerKlatkiM = meteor.Width / 3; // wybor klatki
Rectangle klatkaM = new Rectangle(nrKlatkiM * szerKlatkiM, 0, szerKlatkiM, meteor.Height); //wybor klatki
// TODO: Add your drawing code here
spriteBatch.Begin();
spriteBatch.Draw(tlo, new Vector2(0,0), Color.White);
kometa.Draw(meteor, spriteBatch, kometa, klatkaM); // wywoalnie draw() z meteora
gracz.Draw(rakieta, spriteBatch, gracz, klatka); // gracz z rakiety
spriteBatch.Draw(control, new Vector2(0, 583), Color.White);
spriteBatch.End();
nrKlatki++;
ileCykli++; // animacja meteoru
if (ileCykli >= 10)
{
nrKlatkiM++;
ileCykli=0;
}
base.Draw(gameTime);
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}