Skip to content

Commit

Permalink
feat(gameplaytypes): added missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup3rFire committed Sep 8, 2021
1 parent 296b9cc commit c1fcae5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gameplay/GameplayTypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/** The possible inputs in a game */
export type Key = "hardDrop" | "softDrop" | "moveLeft" | "moveRight" | "rotateCW" | "rotateCCW";
export type Key =
| "hardDrop"
| "softDrop"
| "moveLeft"
| "moveRight"
| "rotateCW"
| "rotateCCW"
| "hold"
| "rotate180";

export interface KeyEvent {
frame: number;
Expand Down

0 comments on commit c1fcae5

Please sign in to comment.