Beispiel #1
0
 public bool NextIntersects(GameObject next)
 {
     return next.X1 <= X1+Width && next.Y1 <= Y1+Height && next.Y1+Height > Y1;
 }
Beispiel #2
0
 public void AddObject(string name, int x1, int y1)
 {
     var obj = new GameObject (name, x1, y1);
     ObjectsByName [obj.Name] = obj;
     Objects.Add (obj);
 }