UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

19 lines (18 loc) 709 B
import { GraphicsComponent } from './GraphicsComponent'; import { Scene } from '../Scene'; import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent'; import { System, SystemType } from '../EntityComponentSystem/System'; import { Query, World } from '../EntityComponentSystem'; export declare class OffscreenSystem extends System { world: World; static priority: number; systemType: SystemType; private _camera; private _screen; private _worldBounds; query: Query<typeof TransformComponent | typeof GraphicsComponent>; constructor(world: World); initialize(world: World, scene: Scene): void; update(): void; private _isOffscreen; }