Skip to content

keilermora/react-tetris

Repository files navigation

Tetris React

code style: prettier Commitizen friendly

https://keilermora.github.io/react-tetris/

A classic game built in React as a learning project.

How to play

Keyboard controls

  • ArrowLeft: Move left.
  • ArrowRight: Move right.
  • ArrowUP or x: Rotate clockwise.
  • ArrowDown: Soft drop.

... Or using the in screen buttons.

Development environment

Minimum requirements

Run in the root of the project:

$ pnpm install
$ pnpm run dev

References

Development resources

  • Commitizen: The commitizen command line utility.
  • Husky - Git Hooks: Husky improves your commits and more 🐶 woof!
  • lint-staged: Run linters on git staged files.
  • PNpM: Fast, disk space efficient package manager.
  • React: A JavaScript library for building user interfaces.
  • Vite: Next Generation Frontend Tooling.

Tetris Guidelines

Asset resources

  • Kenney: Free game assets, no strings attached.