public World(BeatEmUpGame game, IBroadphase bp, INarrowphase np) { this.game = game; if (bp == null) { throw new ArgumentException("broadphase can not be null!", "bp"); } if (np == null) { throw new ArgumentException("narrowphase can not be null!", "np"); } Broadphase = bp; Narrowphase = np; colliders = new List <Body>(128); }
static void Main() { using (var game = new BeatEmUpGame()) game.Run(); }