Пример #1
0
 static void Main(string[] args)
 {
     using (var game = new SpaceMarineGame())
     {
         game.Run();
     }
 }
Пример #2
0
 public SpaceMarineGame() :
     base(
         (int)(Constants.MAP_TILES_WIDE * Constants.TILE_WIDTH * Constants.GAME_ZOOM),
         (int)(Constants.MAP_TILES_HIGH * Constants.TILE_HEIGHT * Constants.GAME_ZOOM) + Constants.STATUS_BAR_HEIGHT)
 {
     SpaceMarineGame.Instance = this;
     this.ActionToKeys[SpaceMarineEvent.AimOrFire] = new List <Keys>()
     {
         Keys.F
     };
 }