23 lines
756 B
TypeScript
23 lines
756 B
TypeScript
import { defineComponent } from "../../src/component";
|
|
|
|
/** Move the active piece left. */
|
|
export const MoveLeft = defineComponent("moveLeft", {});
|
|
|
|
/** Move the active piece right. */
|
|
export const MoveRight = defineComponent("moveRight", {});
|
|
|
|
/** Rotate the active piece clockwise. */
|
|
export const Rotate = defineComponent("rotate", {});
|
|
|
|
/** Soft drop — move piece down one row immediately. */
|
|
export const SoftDrop = defineComponent("softDrop", {});
|
|
|
|
/** Hard drop — slam piece to the bottom instantly. */
|
|
export const HardDrop = defineComponent("hardDrop", {});
|
|
|
|
/** Pause / unpause the game. */
|
|
export const TogglePause = defineComponent("togglePause", {});
|
|
|
|
/** Restart after game over. */
|
|
export const Restart = defineComponent("restart", {});
|