예제 #1
0
 public void LoadContent()
 {
     ballTexture        = new TextureSource(game.Content.Load <Texture2D>("Ball.png"));
     wallTexture        = new TextureSource(game.Content.Load <Texture2D>("Brick.png"));
     particleTexture    = new TextureSource(game.Content.Load <Texture2D>("particle.png"));
     crackedWallTexture = new TextureSource(game.Content.Load <Texture2D>("CrackedBrick.png"));
     backgroundTexture  = new TextureSource(game.Content.Load <Texture2D>("galaxy.jpg"));
 }
예제 #2
0
 public Sprite()
 {
     texture       = null;
     position      = Vector2.Zero;
     color         = Color.White;
     rotation      = 0f;
     origin        = Vector2.Zero;
     effects       = SpriteEffects.None;
     drawingArea   = new Rectangle();
     collisionable = true;
     solid         = true;
 }