Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.08 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.08 KB

Sirtet

🕹️ Sirtet is a Canvas2D Tetris clone that I made to learn about the canvas, webpack and making a tiny game engine from scratch.


Installation

  • Clone the repo: git clone [email protected]:sdegueldre/sirtet.git
  • Install the dependencies: npm install
  • Modify some files
  • Use npm run dev to build the project locally (http://localhost:5000) and rebuild automatically when files are changed
  • Use npm run build to build the project once for deployment. This command will set webpack's publicPath to /sirtet/, as this is the path in which it runs on my github page. If you want to deploy this in a different directory, you can invoke webpack directly and set the PUBLIC_PATH environment variable to your desired public path, i.e. npx webpack --env.PUBLIC_PATH="/projects/tetris_clones/example/", which will let you deploy the contents of the docs folder at http://example.com/projects/tetris_clones/example/

Controls

Move

Rotate

Fast drop

esc Pause


June 2019, Samuel Degueldre.