This is the main type for your game.
상속: Game
예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
예제 #2
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame<Game1>.Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
예제 #3
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
예제 #4
0
파일: Program.cs 프로젝트: karv/Moggle
		internal static void RunGame ()
		{
			game = new Game1 ();
			game.Run ();
		}
예제 #5
0
 public void HandleEndLevel(Game1 game, Player p, Level l)
 {
     playerRectangle = new Rectangle((int)(p.X + 24 * p.Scale), (int)p.Y, (int)(9 * p.Scale), (int)(60 * p.Scale));
     eolRectangle = new Rectangle((int)(l.endOflevel.X + 42), (int)l.endOflevel.Y, 10, 64);
     if (playerRectangle.Intersects(eolRectangle))
         game.ChangeLevel = true;
 }