示例#1
0
 public BattleMap(Game game, int x, int y)
 {
     height = x;
     width = y;
     map = new Tile[x,y];
     random = new RandomNumberGenerator();
 }
示例#2
0
 public Character(Game game, int xLoc, int yLoc)
     : base(game)
 {
     position = new Vector2(xLoc*60+12, yLoc*60+27);
     content = new ContentManager(game.Services, "Content");
     map = (BattleMap)game.Services.GetService(typeof(BattleMap));
     playerManager = (PlayerManager)game.Services.GetService(typeof(PlayerManager));
     currentHealth = Maxhealth;
     random = new RandomNumberGenerator();
 }