Skip to content

Commit

Permalink
feat: controls for capital letter
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ndratov committed Oct 11, 2024
1 parent cfd3b47 commit e732178
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client/src/components/Game/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type Vector = {
}

const MOVEMENT_CONTROLS: Record<Action, string[]> = {
[Action.MoveUp]: ['ArrowUp', 'w', 'ц'],
[Action.MoveDown]: ['ArrowDown', 's', 'ы'],
[Action.MoveLeft]: ['ArrowLeft', 'a', 'ф'],
[Action.MoveRight]: ['ArrowRight', 'd', 'в'],
[Action.MoveUp]: ['ArrowUp', 'w', 'ц', 'W', 'Ц'],
[Action.MoveDown]: ['ArrowDown', 's', 'ы', 'S', 'Ы'],
[Action.MoveLeft]: ['ArrowLeft', 'a', 'ф', 'A', 'Ф'],
[Action.MoveRight]: ['ArrowRight', 'd', 'в', 'D', 'В'],
}

const VECTORS: Record<Action, Vector> = {
Expand Down

0 comments on commit e732178

Please sign in to comment.