Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     #if INSIDE_WINFORM
     WinFormContainer form = new WinFormContainer();
     Application.EnableVisualStyles();
     form.Show();
     Game1 game = new Game1(form);
     form.game = game;
     game.Run();
     #else
     using (Game1 game = new Game1())
     {
         game.Run();
     }
     #endif
 }
Esempio n. 2
0
 public Tank(Game1 game, Vector3 pos, int num, Vector3 playerColor)
     : base(game)
 {
     position = pos;
     this.game = game;
     thisTankNumber = num;
     this.playerColor = playerColor;
     ChangeToAim();
 }
Esempio n. 3
0
 public HUD(Game g)
     : base(g)
 {
     game = (Game1)g;
 }
Esempio n. 4
0
 public Indicator(Game1 g, Tank owner)
     : base(g)
 {
     game = g;
     this.owner = owner;
 }
 public SkeletonDrawableGameComponent(Game1 g)
     : base(g)
 {
     game = g;
 }
Esempio n. 6
0
 public Reticle(Game1 g)
     : base(g)
 {
     game = g;
     Position = new Vector2(0, 0);
 }
Esempio n. 7
0
 public Player(Game1 game)
 {
     this.game = game;
     myState = PlayerState.Start;
 }