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.

26 lines (25 loc) 839 B
/** * An enum that describes the strategies that rotation actions can use */ export declare enum RotationType { /** * Rotation via `ShortestPath` will use the smallest angle * between the starting and ending points. This strategy is the default behavior. */ ShortestPath = "shortest-path", /** * Rotation via `LongestPath` will use the largest angle * between the starting and ending points. */ LongestPath = "longest-path", /** * Rotation via `Clockwise` will travel in a clockwise direction, * regardless of the starting and ending points. */ Clockwise = "clockwise", /** * Rotation via `CounterClockwise` will travel in a counterclockwise direction, * regardless of the starting and ending points. */ CounterClockwise = "counter-clockwise" }