Beispiel #1
0
 //protected void OnLocationChange(string name, Point newLocation)
 //{
 //    view.object_OnLocationChange(name,  newLocation);
 //}
 public void OnLocationChange(string name, Point newLocation)
 {
     //this.infoRight.Text = String.Format("x:{0} y:{1}", dude.Location.X, dude.Location.Y);
     //player.Location = dude.Location.GetScreenFromWorld(this.Width);
     //this.box1.Location = box.Location.GetScreenFromWorld(this.Width);
     Element(name).Location = newLocation.GetScreenFromWorld(view.Width);
 }