diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-11-08 21:12:04 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-11-08 21:12:04 +0000 |
| commit | 28f705fc4aa2f3c62e7fe7d95557494bedcb8d1c (patch) | |
| tree | 71553afeab22cef4b3a36aee2ea24728a1d17ec1 /frontend | |
| parent | 75afbd9a6add8842ce2279f80fafb2cba5b25115 (diff) | |
remove freeze tick on drop
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/Dockerfile | 5 | ||||
| -rw-r--r-- | frontend/src/components/TetrisBoard.vue | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile index b12c280..90aa9fd 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,12 +10,11 @@ COPY . . EXPOSE 4173 +RUN npm run build + CMD ["npm", "run", "preview-host"] # fuck nginx - -# RUN npm run build - # FROM nginx:1.21.1-alpine # # COPY --from=build /app/dist /usr/share/nginx/html diff --git a/frontend/src/components/TetrisBoard.vue b/frontend/src/components/TetrisBoard.vue index 9767d03..5ea2628 100644 --- a/frontend/src/components/TetrisBoard.vue +++ b/frontend/src/components/TetrisBoard.vue @@ -173,7 +173,8 @@ function dropTetromino() { if (rowsDropped === 0) { return; } - + + freezeTick = true; points.value += rowsDropped + 1; tick(); |
