@pietal.dev/engine
Version:
PIXI v8, v7, v6 compatible: inspired by Unity, reactive Game Framework: GameObject, StateMachine, CircleBody, PolygonBody, Physics, Sprite, Container, Animator, TextureAtlas, Resources loading
38 lines (37 loc) • 1.13 kB
TypeScript
import { BodyOptions, Ellipse } from 'detect-collisions';
import { Subject } from 'rxjs/internal/Subject';
import { GameObject } from './game-object';
import { LifecycleParent, LifecycleProps } from './lifecycle';
export declare class CircleBody extends Ellipse implements LifecycleProps {
/**
* When Lifecycle Object is updated, it emits this subject.
* Along with updating his children, which in turn behave the same.
*/
readonly update$: Subject<number>;
/**
* When Lifecycle Object is destroyed, it emits and closes this subject.
* Along with destroying his children, which in turn behave the same.
*/
readonly destroy$: Subject<void>;
/**
* Parent GameObject is assigned at creation.
*/
gameObject: LifecycleParent;
/**
* Each Lifecycle Object has label for pixi debugging.
*/
label: string;
constructor(
gameObject: GameObject,
radiusX: number,
radiusY?: number,
step?: number,
options?: BodyOptions
);
/**
* @param deltaTime = 1.0 for 60FPS
*/
update(deltaTime: number): void;
destroy(): void;
}
//# sourceMappingURL=circle-body.d.ts.map