Beispiel #1
0
        public void UpdateWindow(Rectangle newWindow)
        {
            xpgen.UpdateWindow(newWindow);
            Rectangle rect = Rectangle.Empty;

            if (!BlockBelow(out rect))
            {
                int changeHeight = newWindow.Height - Window.Height;
                Position.Y          += changeHeight;
                fireball.Position.Y += changeHeight;
            }
            Window = newWindow;
        }
Beispiel #2
0
 public void UpdateWindow(Rectangle newWindow)
 {
     xpgen.UpdateWindow(newWindow);
     window = newWindow;
 }