예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MainWindow game = new MainWindow())
     {
         game.Run();
     }
 }
예제 #2
0
 public GameObject(string texturename, ContentManager content, MainWindow mw)
 {
     _content = content;
     Texturename = texturename;
     RemoveWhenOutOfBounds = true;
     TheGame = mw;
     _texture = content.Load<Texture2D>(Texturename);
     Angle = 0f;
     Speed = new Vector2(0, 0);
     Location = new Vector2(TheGame.Screenwidth / 2f, TheGame.Screenheight / 2f);
 }
예제 #3
0
 public PlayerShip(string texturename,ContentManager  content, MainWindow mw)
     : base(texturename,content,mw)
 {
 }