Example #1
0
 public override void LoadContent()
 {
     _renderer = new TileMapRenderer(this, GameMap);
     base.LoadContent();
 }
Example #2
0
 private void RecievedMap(SendMapPacket obj)
 {
     // Setup
     Camera2D.SetWorldSize(obj.Map.Layers[0].Width, obj.Map.Layers[0].Height);
     _tileMapRenderer = new TileMapRenderer(this, obj.Map);
     GameGlobals.EntityID = obj.PlayerId;
     networkInput.Initialize();
 }