Skip to content

Commit

Permalink
dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiNugarker committed Feb 13, 2024
1 parent 916033f commit a52560f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
# dist
dist-ssr
*.local

Expand Down
1 change: 1 addition & 0 deletions dist/assets/index-50Gev5PF.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/assets/index-iNQyYPtT.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
html,body{margin:0;padding:0;box-sizing:border-box}#app{background-color:#333340;min-height:100vh;display:flex;justify-content:center;align-items:center}
16 changes: 16 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tetris</title>
<script type="module" crossorigin src="./assets/index-50Gev5PF.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-iNQyYPtT.css" />
</head>
<body>
<div id="app">
<canvas id="canvas" width="500" height="500"></canvas>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions dist/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/tetris/Tetromino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Tetromino {
})
}

update(deltaTime: number, timeStamp: number) {
update(_deltaTime: number, timeStamp: number) {
if (timeStamp - this.lastMoveDownTime > this.moveDownInterval) {
this.lastMoveDownTime = timeStamp
this.moveDown()
Expand Down Expand Up @@ -152,7 +152,7 @@ export class Tetromino {
return rightPoint
}

draw(ctx: CanvasRenderingContext2D) {
draw(_ctx: CanvasRenderingContext2D) {
const { x, y } = this
for (let row = 0; row < this.shape.length; row++) {
for (let col = 0; col < this.shape[row].length; col++) {
Expand Down

0 comments on commit a52560f

Please sign in to comment.