/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (MainWindow game = new MainWindow()) { game.Run(); } }
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); }
public PlayerShip(string texturename,ContentManager content, MainWindow mw) : base(texturename,content,mw) { }