ball.cs
class ball
c-sharp
namespace WindowsGame1
{
class Ball
{
Vector2 Pozice, Smer;
Texture2D Texture;
int Stagevyska, Stagesirka;
public Ball(Vector2 pozice, Vector2 smer, Texture2D texture, int stagevyska, int stagesirka)
{
Pozice = pozice;
Smer = smer;
Texture = texture;
Stagesirka = stagesirka;
Stagevyska = stagevyska;
}
public void Draw(SpriteBatch spriteBatch)
{
spriteBatch.Begin();
spriteBatch.Draw(Texture, Pozice, Color.White);
spriteBatch.End();
}
}
}
Neformátovaný
Přidáno: 14.6.2013
Expirace: Neuvedeno