import { ActorHittr } from "actorhittr"; import { AreaSpawnr } from "areaspawnr"; import { FpsAnalyzr } from "fpsanalyzr"; import { FrameTickr } from "frametickr"; import { GroupHoldr } from "groupholdr"; import { InputWritr } from "inputwritr"; import { ItemsHoldr } from "itemsholdr"; import { MapsCreatr } from "mapscreatr"; import { MapScreenr } from "mapscreenr"; import { ObjectMakr } from "objectmakr"; import { PixelDrawr } from "pixeldrawr"; import { PixelRendr } from "pixelrendr"; import { QuadsKeepr } from "quadskeepr"; import { TimeHandlr } from "timehandlr"; import { Actors } from "./sections/Actors"; import { Collisions } from "./sections/Collisions"; import { Death } from "./sections/Death"; import { Frames } from "./sections/Frames"; import { Graphics } from "./sections/Graphics"; import { Groups } from "./sections/Groups"; import { Inputs } from "./sections/Inputs"; import { Items } from "./sections/Items"; import { Maintenance } from "./sections/Maintenance"; import { Maps } from "./sections/Maps"; import { Objects } from "./sections/Objects"; import { Physics } from "./sections/Physics"; import { Quadrants } from "./sections/Quadrants"; import { Scrolling } from "./sections/Scrolling"; import { Timing } from "./sections/Timing"; import { Utilities } from "./sections/Utilities"; import { Actor, EightBittrConstructorSettings, EightBittrSettings } from "./types"; /** * Bare-bones, highly modular game engine for 2D 8-bit games. */ export declare class EightBittr { /** * Screen and component reset settings. */ readonly settings: EightBittrSettings; /** * Loads EightBittr maps to spawn and unspawn areas on demand. */ readonly areaSpawner: AreaSpawnr; /** * Storage and analysis for framerate measurements. */ readonly fpsAnalyzer: FpsAnalyzr; /** * Runs a series of callbacks on a timed interval. */ readonly frameTicker: FrameTickr; /** * General storage abstraction for keyed containers of items. */ readonly groupHolder: GroupHoldr; /** * Pipes input events to action callbacks. */ readonly inputWriter: InputWritr; /** * Cache-based wrapper around localStorage. */ readonly itemsHolder: ItemsHoldr; /** * Storage container and lazy loader for EightBittr maps. */ readonly mapsCreator: MapsCreatr; /** * A simple container for Map attributes given by switching to an Area. */ readonly mapScreener: MapScreenr; /** * A abstract factory for dynamic attribute-based JavaScript classes. */ readonly objectMaker: ObjectMakr; /** * Real-time scene drawer for PixelRendr sprites. */ readonly pixelDrawer: PixelDrawr; /** * Compresses images into text blobs in real time with fast cached lookups. */ readonly pixelRender: PixelRendr; /** * Adjustable quadrant-based collision detection. */ readonly quadsKeeper: QuadsKeepr; /** * Actor collision detection automator that unifies GroupHoldr and QuadsKeepr. */ readonly actorHitter: ActorHittr; /** * Flexible, pauseable alternative to setTimeout. */ readonly timeHandler: TimeHandlr; /** * Checkers and callbacks for Actor collisions. */ readonly collisions: Collisions; /** * Removes Actors from the game. */ readonly death: Death; /** * Logic to advance each frame of the game. */ readonly frames: Frames; /** * Actor pixel data and properties. */ readonly graphics: Graphics; /** * Collection settings for Actors group names. */ readonly groups: Groups; /** * User input filtering and handling. */ readonly inputs: Inputs; /** * Storage keys and value settings. */ readonly items: Items; /** * Enters and spawns map areas. */ readonly maps: Maps; /** * Update logic for Actors in game ticks. */ readonly maintenance: Maintenance; /** * Raw ObjectMakr factory settings. */ readonly objects: Objects; /** * Physics functions to move Actors around. */ readonly physics: Physics; /** * Arranges game physics quadrants. */ readonly quadrants: Quadrants; /** * Moves the screen and Actors in it. */ readonly scrolling: Scrolling; /** * Adds and processes new Actors into the game. */ readonly actors: Actors; /** * Timing constants for delayed events. */ readonly timing: Timing; /** * Miscellaneous utility functions. */ readonly utilities: Utilities; /** * Background canvas upon which the game's background is occasionally drawn. */ readonly background: HTMLCanvasElement; /** * Foreground canvas upon which the game's screen is constantly drawn. */ readonly foreground: HTMLCanvasElement; /** * HTML container containing all game elements. */ readonly container: HTMLElement; /** * Initializes a new instance of the EightBittr class. * * @param settings Settings to be used for initialization. */ constructor(settings: EightBittrConstructorSettings); } //# sourceMappingURL=EightBittr.d.ts.map