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; }
public void UpdateWindow(Rectangle newWindow) { xpgen.UpdateWindow(newWindow); window = newWindow; }