blaze-2d
Version:
A fast and simple WebGL 2 2D game engine written in TypeScript
9 lines (8 loc) • 338 B
TypeScript
import Player from "../../player";
/**
* Creates a virtual joystick which can be used to control a {@link Player}'s movement on a touch device.
*
* @param element The element to append the joystick to
* @param player The player to control
*/
export declare function createVirtualJoystick(element: HTMLElement, player: Player): void;