import { VariableFunctions } from "mapscreenr"; import { EightBittr } from "../EightBittr"; import { Actor } from "../types"; import { Section } from "./Section"; /** * Moves the screen and Actors in it. */ export declare class Scrolling extends Section { /** * A mapping of functions to generate member variables that should be * recomputed on screen change, keyed by variable name. */ readonly variableFunctions?: VariableFunctions; /** * Scrolls the game window by shifting all Actors and checking for quadrant * refreshes. Shifts are rounded to the nearest integer, to preserve pixels. * * @param customs Any optional custom settings. * @param dx How far to scroll horizontally. * @param dy How far to scroll vertically. */ scrollWindow(dx: number, dy?: number): void; /** * Scrolls everything but a single Actor. * * @param actor The only Actor that shouldn't move on the screen. * @param dx How far to scroll horizontally. * @param dy How far to scroll vertically. */ scrollActor(actor: Actor, dx: number, dy?: number): void; } //# sourceMappingURL=Scrolling.d.ts.map