예제 #1
0
 public PlayerAvatar(Texture2D4D aTextures, Vector2 initialGridPos, Block[,] grid, IEnumerable<Laserbeam> laserBeams, MainGame game, bool isSilverBot = false)
 {
     gridPos = initialGridPos;
     animPos = gridPos * 32.0f;
     animTarget = animPos;
     textures = aTextures;
     facing = Direction4D.Right;
     this.grid = grid;
     this.laserBeams = laserBeams;
     this.game = game;
     explosionTexture = game.textures.explosion;
     Arrive += PlayerAvatar_Arrive;
     this.isSilverBot = isSilverBot;
 }
예제 #2
0
 static void Main(string[] args)
 {
     MainGame game = new MainGame();
     game.Run();
 }