Пример #1
0
 public GameMap(Graphics graphics)
 {
     this.graphics = graphics;
     this.scroll   = new prim.Point(0, 0);
     mapInterface  = new MapInterface.MapInterface();
     controlEntity = new ControlEntity();
     run           = true;
 }
Пример #2
0
 public void AddControlEntity(Graphics graphics, string templateKey)
 {
     MapInterface.ObjectTemplate template = mapInterface.objectTemplates[templateKey];
     controlEntity = new ControlEntity(world, template, graphics);
 }